From 405fc8cafd5cf3e668d2f2b590b3f9cc3cc409fc Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Tue, 3 Jul 2018 17:34:58 -0400 Subject: [PATCH] Use helper function to close now playing --- .../nullsum/audinaut/activity/SubsonicFragmentActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/nullsum/audinaut/activity/SubsonicFragmentActivity.java b/app/src/main/java/net/nullsum/audinaut/activity/SubsonicFragmentActivity.java index 739b12d..2b15c03 100644 --- a/app/src/main/java/net/nullsum/audinaut/activity/SubsonicFragmentActivity.java +++ b/app/src/main/java/net/nullsum/audinaut/activity/SubsonicFragmentActivity.java @@ -418,7 +418,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo @Override public void onBackPressed() { if (slideUpPanel.getPanelState() == SlidingUpPanelLayout.PanelState.EXPANDED && secondaryFragment == null) { - slideUpPanel.setPanelState(SlidingUpPanelLayout.PanelState.COLLAPSED); + closeNowPlaying(); } else if (slideUpPanel.getPanelState() == SlidingUpPanelLayout.PanelState.EXPANDED) { removeCurrent(); } else { @@ -488,7 +488,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo super.drawerItemSelected(fragmentType); if (slideUpPanel.getPanelState() == SlidingUpPanelLayout.PanelState.EXPANDED) { - slideUpPanel.setPanelState(SlidingUpPanelLayout.PanelState.COLLAPSED); + closeNowPlaying(); } }