pull/154/head
M66B 6 years ago
parent 66f4519f9c
commit 7a58605d50

@ -75,7 +75,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
int after = Helper.getSize(outState);
Log.i("Saved instance " + this + " size=" + before + "/" + after);
for (String key : outState.keySet())
Log.i("Saved " + key + "=" + outState.get(key));
Log.i("Saved " + this + " " + key + "=" + outState.get(key));
}
@Override

@ -240,8 +240,8 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putBoolean("fair:toggle", drawerToggle.isDrawerIndicatorEnabled());
super.onSaveInstanceState(outState);
}
@Override

@ -549,8 +549,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putBoolean("fair:toggle", drawerToggle.isDrawerIndicatorEnabled());
super.onSaveInstanceState(outState);
}
@Override

@ -1073,12 +1073,12 @@ public class FragmentAccount extends FragmentBase {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putInt("fair:provider", spProvider.getSelectedItemPosition());
outState.putInt("fair:auth_type", auth_type);
outState.putString("fair:password", tilPassword.getEditText().getText().toString());
outState.putInt("fair:advanced", grpAdvanced.getVisibility());
outState.putInt("fair:color", color);
super.onSaveInstanceState(outState);
}
@Override

@ -169,9 +169,8 @@ public class FragmentAccounts extends FragmentBase {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putString("fair:searching", searching);
super.onSaveInstanceState(outState);
}
@Override

@ -55,14 +55,13 @@ public class FragmentBase extends Fragment {
@Override
public void onSaveInstanceState(Bundle outState) {
Log.i("Save instance " + this);
int base = Helper.getSize(outState);
super.onSaveInstanceState(outState);
int before = Helper.getSize(outState);
outState.putString("fair:subtitle", subtitle);
super.onSaveInstanceState(outState);
int after = Helper.getSize(outState);
Log.i("Saved instance " + this + " base=" + base + " size=" + before + "/" + after);
Log.i("Saved instance " + this + " size=" + before + "/" + after);
for (String key : outState.keySet())
Log.i("Saved " + key + "=" + outState.get(key));
Log.i("Saved " + this + " " + key + "=" + outState.get(key));
}
@Override

@ -617,9 +617,9 @@ public class FragmentCompose extends FragmentBase {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putLong("fair:working", working);
outState.putBoolean("fair:show_images", show_images);
super.onSaveInstanceState(outState);
}
@Override

@ -84,8 +84,8 @@ public class FragmentContacts extends FragmentBase {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putString("fair:searching", searching);
super.onSaveInstanceState(outState);
}
@Override

@ -220,8 +220,6 @@ public class FragmentFolders extends FragmentBase {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putString("fair:searching", searching);
outState.putLongArray("fair:parents", Helper.toLongArray(parentChilds.keySet()));
@ -231,6 +229,8 @@ public class FragmentFolders extends FragmentBase {
for (int i = 0; i < childs.size(); i++)
outState.putSerializable("fair:childs:" + parent + ":" + i, childs.get(i));
}
super.onSaveInstanceState(outState);
}
@Override

@ -740,13 +740,13 @@ public class FragmentIdentity extends FragmentBase {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putInt("fair:account", spAccount.getSelectedItemPosition());
outState.putInt("fair:provider", spProvider.getSelectedItemPosition());
outState.putInt("fair:auth_type", auth_type);
outState.putString("fair:password", tilPassword.getEditText().getText().toString());
outState.putInt("fair:advanced", grpAdvanced.getVisibility());
outState.putInt("fair:color", color);
super.onSaveInstanceState(outState);
}
@Override

@ -1620,8 +1620,6 @@ public class FragmentMessages extends FragmentBase {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putString("fair:searching", searching);
outState.putBoolean("fair:autoExpanded", autoExpanded);
@ -1648,6 +1646,8 @@ public class FragmentMessages extends FragmentBase {
if (selectionTracker != null)
selectionTracker.onSaveInstanceState(outState);
super.onSaveInstanceState(outState);
}
@Override

Loading…
Cancel
Save