1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-04-10 12:46:43 +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
commit c1bdffd917
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {