[Android] VideoPlayer: hide seek buttons when locked

Thomas Guillem git at videolan.org
Thu Oct 22 11:01:20 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Oct 22 10:59:28 2015 +0200| [633c24cb5219b2d59f8a1de393a2b8df379cf40d] | committer: Thomas Guillem

VideoPlayer: hide seek buttons when locked

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

 .../org/videolan/vlc/gui/video/VideoPlayerActivity.java    |   12 ++++++++++++
 1 file changed, 12 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 1568595..95f3180 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2323,6 +2323,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                 if (mAdvOptions !=null)
                     mAdvOptions.setVisibility(View.VISIBLE);
                 mSize.setVisibility(View.VISIBLE);
+                if (mRewind != null)
+                    mRewind.setVisibility(View.VISIBLE);
+                if (mForward != null)
+                    mForward.setVisibility(View.VISIBLE);
             }
             dimStatusBar(false);
             mOverlayProgress.setVisibility(View.VISIBLE);
@@ -2351,6 +2355,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                     mTracks.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
                 if (mAdvOptions !=null)
                     mAdvOptions.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
+                if (mRewind != null)
+                    mRewind.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
+                if (mForward != null)
+                    mForward.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
             } else
                 mSize.setVisibility(View.INVISIBLE);
             if (mPresentation != null) {
@@ -2364,6 +2372,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                 mTracks.setVisibility(View.INVISIBLE);
             if (mAdvOptions !=null)
                 mAdvOptions.setVisibility(View.INVISIBLE);
+            if (mRewind != null)
+                mRewind.setVisibility(View.INVISIBLE);
+            if (mForward != null)
+                mForward.setVisibility(View.INVISIBLE);
             mShowing = false;
             dimStatusBar(true);
         } else if (!fromUser) {



More information about the Android mailing list