[Android] Fix audio player started twice on device rotation

Geoffrey Métais git at videolan.org
Fri Mar 30 16:51:37 CEST 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar 29 16:00:22 2018 +0200| [8556a04813b181ba741d6d9a112d383164eb7f1b] | committer: Geoffrey Métais

Fix audio player started twice on device rotation

(cherry picked from commit e2aa54c7fdc93200b4bc564a5ca4b8f2eb843257)

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
index e6d75caf2..4460cbf64 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
@@ -113,7 +113,6 @@ public class AudioPlayerContainerActivity extends BaseActivity implements Playba
     private void initAudioPlayer() {
         ((ViewStubCompat)findViewById(R.id.audio_player_stub)).inflate();
         mAudioPlayer = (AudioPlayer) getSupportFragmentManager().findFragmentById(R.id.audio_player);
-        mAudioPlayer.setUserVisibleHint(false);
         mBottomSheetBehavior = BottomSheetBehavior.from(mAudioPlayerContainer);
         mBottomSheetBehavior.setPeekHeight(getResources().getDimensionPixelSize(R.dimen.player_peek_height));
         mBottomSheetBehavior.setBottomSheetCallback(mAudioPlayerBottomSheetCallback);



More information about the Android mailing list