diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-12-30 08:31:04 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-12-30 08:31:04 -0800 |
commit | 4a63563b47710fb1cdc214bbc8ad71fd961a1db6 (patch) | |
tree | cc74ee4f2c896c6ac59b73d012535d23b66ad063 /src | |
parent | 3035c5b9a4c0d0edbd03c959b1956635d470be94 (diff) | |
download | dsub-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')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SettingsActivity.java | 6 |
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(); } } } |