[Android] Disconnect callbacks from PlayBackService
Geoffrey Métais
git at videolan.org
Thu Feb 25 13:15:33 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 25 13:14:11 2016 +0100| [85f4e360202b17c5478f0523fd634342fc0149e0] | committer: Geoffrey Métais
Disconnect callbacks from PlayBackService
> https://code.videolan.org/videolan/vlc-android/commit/85f4e360202b17c5478f0523fd634342fc0149e0
---
vlc-android/src/org/videolan/vlc/media/MediaUtils.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/media/MediaUtils.java b/vlc-android/src/org/videolan/vlc/media/MediaUtils.java
index 662c611..fc015aa 100644
--- a/vlc-android/src/org/videolan/vlc/media/MediaUtils.java
+++ b/vlc-android/src/org/videolan/vlc/media/MediaUtils.java
@@ -64,6 +64,7 @@ public class MediaUtils {
@Override
public void onConnected(PlaybackService service) {
service.load(media);
+ mClient.disconnect();
}
};
}
@@ -196,7 +197,7 @@ public class MediaUtils {
@Override
public void onConnected(PlaybackService service) {
mRunnable.run(service);
- dialog.dismiss();
+ dialog.cancel();
}
@Override
More information about the Android
mailing list