aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-02-16 17:48:00 -0800
committerScott Jackson <daneren2005@gmail.com>2016-02-16 17:48:00 -0800
commitd5900f8e94e9111699ddaab717a2b3ad5c664003 (patch)
tree5f6feb5577bdf4ae83429a5e667d309d99a5febe /app/src/main/java/github
parentd927e7ae8d056a025c9ea2a46a6c638b5f2539d9 (diff)
downloaddsub-d5900f8e94e9111699ddaab717a2b3ad5c664003.tar.gz
dsub-d5900f8e94e9111699ddaab717a2b3ad5c664003.tar.bz2
dsub-d5900f8e94e9111699ddaab717a2b3ad5c664003.zip
Fixes #648: Fix onPanelCollapse being called on drag down even if already closed
Diffstat (limited to 'app/src/main/java/github')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java12
1 files changed, 7 insertions, 5 deletions
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 3bcd0864..487ad83c 100644
--- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
+++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
@@ -200,11 +200,13 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
@Override
public void onPanelCollapsed(View panel) {
isPanelClosing = false;
- bottomBar.setVisibility(View.VISIBLE);
- nowPlayingToolbar.setVisibility(View.GONE);
- nowPlayingFragment.setPrimaryFragment(false);
- setSupportActionBar(mainToolbar);
- recreateSpinner();
+ if(bottomBar.getVisibility() == View.GONE) {
+ bottomBar.setVisibility(View.VISIBLE);
+ nowPlayingToolbar.setVisibility(View.GONE);
+ nowPlayingFragment.setPrimaryFragment(false);
+ setSupportActionBar(mainToolbar);
+ recreateSpinner();
+ }
}
@Override