Scoped saved instance values

This commit is contained in:
M66B
2019-03-02 07:35:12 +00:00
parent 90444cd65e
commit 86ca2c00fc
8 changed files with 44 additions and 44 deletions

View File

@@ -251,7 +251,7 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
}
if (savedInstanceState != null)
drawerToggle.setDrawerIndicatorEnabled(savedInstanceState.getBoolean("toggle"));
drawerToggle.setDrawerIndicatorEnabled(savedInstanceState.getBoolean("fair:toggle"));
DB.getInstance(this).account().liveSynchronizingAccounts().observe(this, new Observer<List<EntityAccount>>() {
@Override
@@ -264,7 +264,7 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putBoolean("toggle", drawerToggle.isDrawerIndicatorEnabled());
outState.putBoolean("fair:toggle", drawerToggle.isDrawerIndicatorEnabled());
}
@Override