Skip to content
Snippets Groups Projects
Commit 8556a048 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix audio player started twice on device rotation

(cherry picked from commit e2aa54c7)
parent d38b4e23
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment