From 31707f8a1ba68da9c73b8540df44b931d4e4e723 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 25 May 2016 17:41:58 -0700 Subject: Fixes #700: close now playing when viewing artist/album --- .../github/daneren2005/dsub/activity/SubsonicFragmentActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java index 630cdd50..51de1f6c 100644 --- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java +++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java @@ -417,6 +417,9 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo openNowPlaying(); } } else { + if(slideUpPanel.getPanelState() == SlidingUpPanelLayout.PanelState.EXPANDED) { + closeNowPlaying(); + } setIntent(intent); } if(drawer != null) { -- cgit v1.2.3