[Android] Don't modify Player hideable state

Geoffrey Métais git at videolan.org
Wed Apr 5 14:01:11 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr  5 13:59:45 2017 +0200| [0820abd6fcfdbc05ef206850d2293895d906f9db] | committer: Geoffrey Métais

Don't modify Player hideable state

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

 .../src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java       | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
index 1e4c457..a6b68d7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
@@ -100,7 +100,6 @@ public class AudioPlayerContainerActivity extends BaseActivity implements Playba
         setSupportActionBar(mToolbar);
         mAppBarLayout = (AppBarLayout) findViewById(R.id.appbar);
         mAppBarLayout.setExpanded(true);
-
         mAudioPlayerContainer = (FrameLayout) findViewById(R.id.audio_player_container);
     }
 
@@ -324,13 +323,9 @@ public class AudioPlayerContainerActivity extends BaseActivity implements Playba
             mAudioPlayer.onStateChanged(newState);
             switch (newState) {
                 case BottomSheetBehavior.STATE_COLLAPSED:
-                    mBottomSheetBehavior.setHideable(false);
                     removeTipViewIfDisplayed();
                     mFragmentContainer.setPadding(0, 0, 0, mBottomSheetBehavior.getPeekHeight());
                     break;
-                case BottomSheetBehavior.STATE_EXPANDED:
-                    mBottomSheetBehavior.setHideable(false);
-                    break;
                 case BottomSheetBehavior.STATE_HIDDEN:
                     removeTipViewIfDisplayed();
                     mFragmentContainer.setPadding(0, 0, 0, 0);



More information about the Android mailing list