Skip to content

Commit c1bdffd

Browse files
authored
Merge pull request #11978 from Profpatsch/fix-back-button-on-remaining-stack
MainActivity: Fix onBackPressed handling for open player
2 parents 99aae7e + fd99c5e commit c1bdffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/schabi/newpipe/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ public void onBackPressed() {
578578
if (player instanceof BackPressable backPressable && !backPressable.onBackPressed()) {
579579
BottomSheetBehavior.from(mainBinding.fragmentPlayerHolder)
580580
.setState(BottomSheetBehavior.STATE_COLLAPSED);
581-
return;
582581
}
582+
return;
583583
}
584584

585585
if (fragmentManager.getBackStackEntryCount() == 1) {

0 commit comments

Comments
 (0)