1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-08-30 17:37:56 +00:00

Merge pull request #11978 from Profpatsch/fix-back-button-on-remaining-stack

MainActivity: Fix onBackPressed handling for open player
This commit is contained in:
Stypox
2025-02-26 16:56:04 +01:00
committed by GitHub

View File

@@ -578,8 +578,8 @@ public class MainActivity extends AppCompatActivity {
if (player instanceof BackPressable backPressable && !backPressable.onBackPressed()) {
BottomSheetBehavior.from(mainBinding.fragmentPlayerHolder)
.setState(BottomSheetBehavior.STATE_COLLAPSED);
return;
}
return;
}
if (fragmentManager.getBackStackEntryCount() == 1) {