Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-Android
Commits
1af07e5d
Commit
1af07e5d
authored
Jun 09, 2016
by
Geoffrey Métais
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Synchronize client connection
parent
48af3512
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
vlc-android/src/org/videolan/vlc/media/MediaUtils.java
vlc-android/src/org/videolan/vlc/media/MediaUtils.java
+5
-10
No files found.
vlc-android/src/org/videolan/vlc/media/MediaUtils.java
View file @
1af07e5d
...
...
@@ -238,7 +238,6 @@ public class MediaUtils {
private
static
class
DialogCallback
extends
BaseCallBack
{
private
final
ProgressDialog
dialog
;
private
final
Runnable
mRunnable
;
private
boolean
performAction
=
true
;
private
interface
Runnable
{
void
run
(
PlaybackService
service
);
...
...
@@ -256,23 +255,19 @@ public class MediaUtils {
@Override
public
void
onCancel
(
DialogInterface
dialog
)
{
synchronized
(
this
)
{
if
(
performAction
)
performAction
=
false
;
else
mClient
.
disconnect
();
mClient
.
disconnect
();
}
}
});
mClient
.
connect
();
synchronized
(
this
)
{
mClient
.
connect
();
}
}
@Override
public
void
onConnected
(
PlaybackService
service
)
{
synchronized
(
this
)
{
if
(
performAction
)
{
performAction
=
false
;
mRunnable
.
run
(
service
);
}
mRunnable
.
run
(
service
);
}
dialog
.
cancel
();
}
...
...
Geoffrey Métais
@Dekans
mentioned in commit
29f389f3
·
Jun 09, 2016
mentioned in commit
29f389f3
mentioned in commit 29f389f3a2fd149ac1249aac01c4de7bb8ef4dd4
Toggle commit list
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