[Android] Hide playlist on click

Geoffrey Métais git at videolan.org
Fri Dec 18 12:03:42 CET 2015


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 18 11:59:46 2015 +0100| [eaedaff8d0014bb6c4bc27fdfcf90eef5dbb8130] | committer: Geoffrey Métais

Hide playlist on click

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 811af26..fde885e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -543,8 +543,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             updateSeekable(mService.isSeekable());
             updatePausable(mService.isPausable());
             mTitle.setText(mService.getCurrentMediaWrapper().getTitle());
-            if (mPlaylist.getVisibility() == View.VISIBLE)
+            if (mPlaylist.getVisibility() == View.VISIBLE) {
                 mPlaylistAdapter.setCurrentIndex(mService.getCurrentMediaPosition());
+                mPlaylist.setVisibility(View.GONE);
+            }
         }
     }
 



More information about the Android mailing list