|
@ -32,12 +32,10 @@ public class SettingsActivity extends BaseActivity { |
|
|
createDrawer(); |
|
|
createDrawer(); |
|
|
drawer.setSelection(SETTINGS_ID); |
|
|
drawer.setSelection(SETTINGS_ID); |
|
|
|
|
|
|
|
|
if (savedInstanceState == null) { |
|
|
preferenceFragment = SettingsFragment.newInstance(sessionManager.isLoggedIn()); |
|
|
preferenceFragment = SettingsFragment.newInstance(sessionManager.isLoggedIn()); |
|
|
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); |
|
|
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); |
|
|
fragmentTransaction.add(R.id.pref_container, preferenceFragment); |
|
|
fragmentTransaction.add(R.id.pref_container, preferenceFragment); |
|
|
fragmentTransaction.commit(); |
|
|
fragmentTransaction.commit(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|