[Android] Ensure audioplayer is set to visible

Geoffrey Métais git at videolan.org
Wed Feb 1 16:03:48 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb  1 16:02:50 2017 +0100| [6cf8bcda7dcf681cbaf2cad7cf65c8fe0f9baa57] | committer: Geoffrey Métais

Ensure audioplayer is set to visible

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

 vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
index 344bd91..39fee4d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
@@ -128,6 +128,7 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
 
         registerForContextMenu(mBinding.songsList);
         getActivity().setVolumeControlStream(AudioManager.STREAM_MUSIC);
+        setUserVisibleHint(true);
     }
 
     public void onPopupMenu(View anchor, final int position) {
@@ -658,11 +659,9 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
         switch (newState) {
                 case BottomSheetBehavior.STATE_COLLAPSED:
                     setHeaderVisibilities(false, false, true, true, true, false);
-                    setUserVisibleHint(false);
                     break;
                 case BottomSheetBehavior.STATE_EXPANDED:
                     setHeaderVisibilities(true, true, false, false, false, true);
-                    setUserVisibleHint(true);
                     showPlaylistTips();
                     mPlaylistAdapter.setCurrentIndex(mService.getCurrentMediaPosition());
                     break;



More information about the Android mailing list