diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-02-16 17:48:00 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-02-16 17:48:00 -0800 |
commit | d5900f8e94e9111699ddaab717a2b3ad5c664003 (patch) | |
tree | 5f6feb5577bdf4ae83429a5e667d309d99a5febe /app/src/main/java/github | |
parent | d927e7ae8d056a025c9ea2a46a6c638b5f2539d9 (diff) | |
download | dsub-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.java | 12 |
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 |