Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
KDE Connect Android
Commits
6328a01d
Commit
6328a01d
authored
Dec 21, 2014
by
Albert Vaca Cintora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added comment
parent
1c767207
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/org/kde/kdeconnect/Plugins/SharePlugin/ShareToReceiver.java
...g/kde/kdeconnect/Plugins/SharePlugin/ShareToReceiver.java
+1
-0
No files found.
src/org/kde/kdeconnect/Plugins/SharePlugin/ShareToReceiver.java
View file @
6328a01d
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment