Browse Source

remove savedInstanceState null check on SettingsActivity

pull/27/head
Thodoris1999 7 years ago
parent
commit
0ecff7d432
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/settings/SettingsActivity.java

2
app/src/main/java/gr/thmmy/mthmmy/activities/settings/SettingsActivity.java

@ -32,13 +32,11 @@ 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
protected void onResume() { protected void onResume() {

Loading…
Cancel
Save