aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
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();
}
}
}