[Android] VideoPlayerActivity: fix OVERLAY_INFINITE value
Thomas Guillem
git at videolan.org
Thu Nov 6 19:09:00 CET 2014
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Nov 6 10:01:05 2014 +0100| [96f5cb3b25c3f7535012d3ecc1a52fb20c8bc8d4] | committer: Geoffrey Métais
VideoPlayerActivity: fix OVERLAY_INFINITE value
Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=96f5cb3b25c3f7535012d3ecc1a52fb20c8bc8d4
---
.../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 6 +++---
1 file changed, 3 insertions(+), 3 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 a0663b3..77acae4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -155,7 +155,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
private View mOverlayProgress;
private View mOverlayBackground;
private static final int OVERLAY_TIMEOUT = 4000;
- private static final int OVERLAY_INFINITE = 3600000;
+ private static final int OVERLAY_INFINITE = -1;
private static final int FADE_OUT = 1;
private static final int SHOW_PROGRESS = 2;
private static final int SURFACE_SIZE = 3;
@@ -1907,10 +1907,10 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
mOverlayProgress.setVisibility(View.VISIBLE);
if (mPresentation != null) mOverlayBackground.setVisibility(View.VISIBLE);
}
- Message msg = mHandler.obtainMessage(FADE_OUT);
if (timeout != 0) {
mHandler.removeMessages(FADE_OUT);
- mHandler.sendMessageDelayed(msg, timeout);
+ if (timeout != OVERLAY_INFINITE)
+ mHandler.sendMessageDelayed(mHandler.obtainMessage(FADE_OUT), timeout);
}
updateOverlayPausePlay();
}
More information about the Android
mailing list