[Android] Sync playlist button visibility with siblings

Geoffrey Métais git at videolan.org
Fri Feb 26 17:35:32 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 26 17:33:35 2016 +0100| [97dcbaf807f20f5c21bcadef48e196c17f44cf95] | committer: Geoffrey Métais

Sync playlist button visibility with siblings

> https://code.videolan.org/videolan/vlc-android/commit/97dcbaf807f20f5c21bcadef48e196c17f44cf95
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 6 ++++++
 1 file changed, 6 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 f57eff3..444ef7c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2467,6 +2467,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                     mForward.setVisibility(View.VISIBLE);
                 if (mMenuIdx >= 0 && mNavMenu != null)
                     mNavMenu.setVisibility(View.VISIBLE);
+                if (mService.getMediaListSize() > 1)
+                    mPlaylistToggle.setVisibility(View.VISIBLE);
             }
             dimStatusBar(false);
             mOverlayProgress.setVisibility(View.VISIBLE);
@@ -2508,6 +2510,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                 mSize.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
                 if (mMenuIdx >= 0 && mNavMenu != null)
                     mNavMenu.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
+            if (mService.getMediaListSize() > 1)
+                mPlaylistToggle.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
             }
             if (mPresentation != null) {
                 mOverlayBackground.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
@@ -2527,6 +2531,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             mSize.setVisibility(View.INVISIBLE);
             if (mMenuIdx >= 0 && mNavMenu != null)
                 mNavMenu.setVisibility(View.INVISIBLE);
+            if (mService.getMediaListSize() > 1)
+                mPlaylistToggle.setVisibility(View.INVISIBLE);
             mShowing = false;
             dimStatusBar(true);
         } else if (!fromUser) {



More information about the Android mailing list