[Android] Remove useless buttons hiding

Geoffrey Métais git at videolan.org
Tue Mar 1 18:22:59 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar  1 18:22:02 2016 +0100| [703b81a73ed7daf70b041968be356c1aa481392f] | committer: Geoffrey Métais

Remove useless buttons hiding

Playlist and DVD menu buttons will hide with action bar, no need to set
them invisible

> https://code.videolan.org/videolan/vlc-android/commit/703b81a73ed7daf70b041968be356c1aa481392f
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java       | 8 --------
 1 file changed, 8 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 8f04d44..35cc31a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2497,10 +2497,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                 if (mForward != null)
                     mForward.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
                 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));
@@ -2518,10 +2514,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             if (mForward != null)
                 mForward.setVisibility(View.INVISIBLE);
             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