mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-06-29 16:42:57 +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()) {
|
if (player instanceof BackPressable backPressable && !backPressable.onBackPressed()) {
|
||||||
BottomSheetBehavior.from(mainBinding.fragmentPlayerHolder)
|
BottomSheetBehavior.from(mainBinding.fragmentPlayerHolder)
|
||||||
.setState(BottomSheetBehavior.STATE_COLLAPSED);
|
.setState(BottomSheetBehavior.STATE_COLLAPSED);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fragmentManager.getBackStackEntryCount() == 1) {
|
if (fragmentManager.getBackStackEntryCount() == 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user