diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-05-05 13:55:55 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-05-05 13:55:55 -0700 |
commit | 7d44c64368d9fb016db622a3817b3ecf0ebd5fa2 (patch) | |
tree | 2566c2763969a376c33102f2b564a340bdb776bb | |
parent | 746cd4ea17b4a2e060a058beccc12965a6f1b27c (diff) | |
download | dsub-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.java | 16 |
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) {
|