aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-05 13:55:55 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-05 13:55:55 -0700
commit7d44c64368d9fb016db622a3817b3ecf0ebd5fa2 (patch)
tree2566c2763969a376c33102f2b564a340bdb776bb
parent746cd4ea17b4a2e060a058beccc12965a6f1b27c (diff)
downloaddsub-7d44c64368d9fb016db622a3817b3ecf0ebd5fa2.tar.gz
dsub-7d44c64368d9fb016db622a3817b3ecf0ebd5fa2.tar.bz2
dsub-7d44c64368d9fb016db622a3817b3ecf0ebd5fa2.zip
Fix controls showing through on DownloadFragment -> LyricsFragment
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java
index c507aa1c..52359782 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java
@@ -44,8 +44,6 @@ import github.daneren2005.dsub.domain.PlayerState;
import github.daneren2005.dsub.domain.RepeatMode;
import github.daneren2005.dsub.service.DownloadFile;
import github.daneren2005.dsub.service.DownloadService;
-import github.daneren2005.dsub.service.MusicService;
-import github.daneren2005.dsub.service.MusicServiceFactory;
import github.daneren2005.dsub.util.Constants;
import github.daneren2005.dsub.util.HorizontalSlider;
import github.daneren2005.dsub.util.SilentBackgroundTask;
@@ -526,7 +524,7 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe
args.putString(Constants.INTENT_EXTRA_NAME_TITLE, song.getSong().getTitle());
fragment.setArguments(args);
- replaceFragment(fragment, R.id.download_layout);
+ replaceFragment(fragment, R.id.download_container);
return true;
case R.id.menu_remove:
new SilentBackgroundTask<Void>(context) {
@@ -674,6 +672,18 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe
visualizerView.setActive(false);
}
}
+
+ @Override
+ public void setPrimaryFragment(boolean primary) {
+ super.setPrimaryFragment(primary);
+ if(rootView != null) {
+ if(primary) {
+ rootView.setVisibility(View.VISIBLE);
+ } else {
+ rootView.setVisibility(View.GONE);
+ }
+ }
+ }
private void scheduleHideControls() {
if (hideControlsFuture != null) {