Skip to content

Commit

Permalink
Set workaround for playback position reset when switching to main pla…
Browse files Browse the repository at this point in the history
…yer with content thumbnail

The workaround set before was not applied when switching to main player with content thumbnail from popup or background player. This commit fixes this by applying the workaround when switching to main player with content thumbnail from popup or background player.
  • Loading branch information
AudricV committed Feb 10, 2022
1 parent 1278fc2 commit d92c848
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,12 @@ public void onClick(final View v) {
toggleTitleAndSecondaryControls();
break;
case R.id.overlay_thumbnail:
// FIXME Workaround #7427
if (isPlayerAvailable()) {
player.setRecovery();
}
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
break;
case R.id.overlay_metadata_layout:
case R.id.overlay_buttons_layout:
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
Expand Down

0 comments on commit d92c848

Please sign in to comment.