[Android] VideoPlayer: remove callbacks on stopPlayback
Thomas Guillem
git at videolan.org
Tue Mar 17 13:52:00 CET 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 17 12:55:07 2015 +0100| [15dd35b05771833e4fa63a2a30d94da80e4f614f] | committer: Thomas Guillem
VideoPlayer: remove callbacks on stopPlayback
This avoid to reset the progress bar to 0 when stopping.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=15dd35b05771833e4fa63a2a30d94da80e4f614f
---
.../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 4a84277..c6922dd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -551,8 +551,6 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
protected void onStop() {
super.onStop();
- mHandler.removeCallbacksAndMessages(null);
-
// Dismiss the presentation when the activity is not visible.
if (mPresentation != null) {
Log.i(TAG, "Dismissing presentation because the activity is no longer visible.");
@@ -673,6 +671,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
em.removeHandler(mEventHandler);
mEventHandler.removeCallbacksAndMessages(null);
+ mHandler.removeCallbacksAndMessages(null);
+
mSurfaceView.setKeepScreenOn(false);
if (mMediaRouter != null) {
More information about the Android
mailing list