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:
commit
c1bdffd917
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user