Commit 6328a01d authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Added comment

parent 1c767207
......@@ -159,6 +159,7 @@ public class ShareToReceiver extends ActionBarActivity {
String text = extras.getString(Intent.EXTRA_TEXT);
String subject = extras.getString(Intent.EXTRA_SUBJECT);
//Hack: Detect shared youtube videos, so we can open them in the browser instead of as text
if (subject != null && subject.endsWith("YouTube")) {
int index = text.indexOf(": http://youtu.be/");
if (index > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment