mirror of
https://github.com/zoriya/Opus.git
synced 2025-12-06 06:26:15 +00:00
Remaking back click management (solving a bug with the queue, adding an handler for the queue).
This commit is contained in:
@@ -1231,10 +1231,10 @@ namespace Opus
|
||||
|
||||
public override void OnBackPressed()
|
||||
{
|
||||
if (SheetBehavior.State == BottomSheetBehavior.StateExpanded)
|
||||
if (Player.instance?.DrawerLayout.IsDrawerOpen((int)GravityFlags.Start) == true)
|
||||
Player.instance?.DrawerLayout.CloseDrawer((int)GravityFlags.Start);
|
||||
else if (SheetBehavior.State == BottomSheetBehavior.StateExpanded)
|
||||
SheetBehavior.State = BottomSheetBehavior.StateCollapsed;
|
||||
else if (PlaylistTracks.instance != null)
|
||||
SupportFragmentManager.BeginTransaction().Remove(PlaylistTracks.instance).Commit();
|
||||
else
|
||||
base.OnBackPressed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user