[Android] Video Player : Set Advanced Menu to invisible when locked

Alexandre Perraud git at videolan.org
Wed Mar 5 22:37:15 CET 2014


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Mar  5 17:22:12 2014 +0100| [a1d309854ebe5e4f524eced2488b093d99cb1ba8] | committer: Adrien Maglo

Video Player : Set Advanced Menu to invisible when locked

Signed-off-by: Adrien Maglo <magsoft at videolan.org>

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

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java       |    5 +++--
 1 file changed, 3 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 5da0e05..9841728 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -630,7 +630,6 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
         mTime.setEnabled(false);
         mSeekbar.setEnabled(false);
         mLength.setEnabled(false);
-        mMenu.setEnabled(false);
         hideOverlay(true);
     }
 
@@ -645,7 +644,6 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
         mTime.setEnabled(true);
         mSeekbar.setEnabled(true);
         mLength.setEnabled(true);
-        mMenu.setEnabled(true);
         mShowing = false;
         showOverlay();
     }
@@ -1518,6 +1516,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                 mOverlayHeader.setVisibility(View.VISIBLE);
                 mOverlayOption.setVisibility(View.VISIBLE);
                 mPlayPause.setVisibility(View.VISIBLE);
+                mMenu.setVisibility(View.VISIBLE);
                 dimStatusBar(false);
             }
             mOverlayProgress.setVisibility(View.VISIBLE);
@@ -1546,11 +1545,13 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                 mOverlayOption.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
                 mOverlayProgress.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
                 mPlayPause.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
+                mMenu.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
             }
             mOverlayHeader.setVisibility(View.INVISIBLE);
             mOverlayOption.setVisibility(View.INVISIBLE);
             mOverlayProgress.setVisibility(View.INVISIBLE);
             mPlayPause.setVisibility(View.INVISIBLE);
+            mMenu.setVisibility(View.INVISIBLE);
             mShowing = false;
             dimStatusBar(true);
         }



More information about the Android mailing list