[Android] VideoPlayerActivity: do not show the overlay if the video player activity is finishing.

Adrien Maglo git at videolan.org
Tue Oct 29 14:02:41 CET 2013


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Oct 29 14:02:04 2013 +0100| [05e6c0fa427ed1326041fbb15ff0cae0d5fda7e1] | committer: Adrien Maglo

VideoPlayerActivity: do not show the overlay if the video player activity is finishing.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=05e6c0fa427ed1326041fbb15ff0cae0d5fda7e1
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 106e07a..9e1ce0d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -211,7 +211,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                             if (visibility == mUiVisibility)
                                 return;
                             setSurfaceSize(mVideoWidth, mVideoHeight, mVideoVisibleWidth, mVideoVisibleHeight, mSarNum, mSarDen);
-                            if (visibility == View.SYSTEM_UI_FLAG_VISIBLE && !mShowing) {
+                            if (visibility == View.SYSTEM_UI_FLAG_VISIBLE && !mShowing && !isFinishing()) {
                                 showOverlay();
                             }
                             mUiVisibility = visibility;



More information about the Android mailing list