[Android] Hide video overlay on back button pressed
Geoffrey Métais
git at videolan.org
Wed Apr 22 10:52:07 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 22 10:51:41 2015 +0200| [7ac00180f9191f15031752c3fefffbaa3ad49058] | committer: Geoffrey Métais
Hide video overlay on back button pressed
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=7ac00180f9191f15031752c3fefffbaa3ad49058
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 ++
1 file changed, 2 insertions(+)
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 ea132bc..2eb6158 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -936,6 +936,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
mLockBackButton = false;
mHandler.sendEmptyMessageDelayed(RESET_BACK_LOCK, 2000);
Toast.makeText(this, getString(R.string.back_quit_lock), Toast.LENGTH_SHORT).show();
+ } else if (mShowing && !mIsLocked) {
+ hideOverlay(true);
} else
super.onBackPressed();
}
More information about the Android
mailing list