Commit 8556a048 authored by Geoffrey Métais's avatar Geoffrey Métais

Fix audio player started twice on device rotation

(cherry picked from commit e2aa54c7)
parent d38b4e23
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment