aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-12-30 08:31:04 -0800
committerScott Jackson <daneren2005@gmail.com>2014-12-30 08:31:04 -0800
commit4a63563b47710fb1cdc214bbc8ad71fd961a1db6 (patch)
treecc74ee4f2c896c6ac59b73d012535d23b66ad063 /src/github
parent3035c5b9a4c0d0edbd03c959b1956635d470be94 (diff)
downloaddsub-4a63563b47710fb1cdc214bbc8ad71fd961a1db6.tar.gz
dsub-4a63563b47710fb1cdc214bbc8ad71fd961a1db6.tar.bz2
dsub-4a63563b47710fb1cdc214bbc8ad71fd961a1db6.zip
Move settings fragment to be placed like standard so restore logic works
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/activity/SettingsActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java
index 24188c39..d5ac60d3 100644
--- a/src/github/daneren2005/dsub/activity/SettingsActivity.java
+++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java
@@ -73,7 +73,7 @@ public class SettingsActivity extends SubsonicActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- setContentView(0);
+ setContentView(R.layout.download_activity);
if (savedInstanceState == null) {
fragment = new SettingsFragment();
@@ -82,8 +82,10 @@ public class SettingsActivity extends SubsonicActivity {
fragment.setArguments(args);
fragment.setRetainInstance(true);
- this.getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, fragment, null).commit();
+
currentFragment = fragment;
+ currentFragment.setPrimaryFragment(true);
+ getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, currentFragment, currentFragment.getSupportTag() + "").commit();
}
}
}