aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-04-30 21:36:42 -0700
committerScott Jackson <daneren2005@gmail.com>2013-04-30 21:36:42 -0700
commit9b50d192a35c4d5ff14d18cdc0bc1dda4e93997d (patch)
treef6ca3014f8da630e628f25e60331e0a9f4852e45 /subsonic-android
parent7961a0d41fcdd6c6a6ebf35c3af518be8f37bbac (diff)
downloaddsub-9b50d192a35c4d5ff14d18cdc0bc1dda4e93997d.tar.gz
dsub-9b50d192a35c4d5ff14d18cdc0bc1dda4e93997d.tar.bz2
dsub-9b50d192a35c4d5ff14d18cdc0bc1dda4e93997d.zip
Fix context menus on initial fragment
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java1
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/SearchActivity.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
index b78724da..f229421e 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
@@ -56,6 +56,7 @@ public class DownloadActivity extends SubsonicActivity {
if (findViewById(R.id.download_container) != null && savedInstanceState == null) {
currentFragment = new DownloadFragment();
+ currentFragment.setPrimaryFragment(true);
getSupportFragmentManager().beginTransaction().add(R.id.download_container, currentFragment).commit();
}
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SearchActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SearchActivity.java
index ec19057c..c06203f7 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/SearchActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/SearchActivity.java
@@ -35,6 +35,7 @@ public class SearchActivity extends SubsonicActivity {
if (findViewById(R.id.download_container) != null && savedInstanceState == null) {
currentFragment = new SearchFragment();
+ currentFragment.setPrimaryFragment(true);
getSupportFragmentManager().beginTransaction().add(R.id.download_container, currentFragment).commit();
}