diff options
author | Alexandra Gherghina <alexgherghina@google.com> | 2014-11-05 10:19:12 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-05 10:19:12 +0000 |
commit | 11fa427f6a5aec76534f8ee51299bd5e201f9013 (patch) | |
tree | e34e44172bfec5ac9b5feb80a94203f31829335f | |
parent | ba1a39ff066055032374e7b2837d3aa915e408ce (diff) | |
parent | 7ce01fe3529c4095301dc49836953a00f604eeed (diff) | |
download | packages_apps_Settings-11fa427f6a5aec76534f8ee51299bd5e201f9013.zip packages_apps_Settings-11fa427f6a5aec76534f8ee51299bd5e201f9013.tar.gz packages_apps_Settings-11fa427f6a5aec76534f8ee51299bd5e201f9013.tar.bz2 |
am 7ce01fe3: am ed321aec: am 7db037a9: Merge "Save missing state in ConfirmAutoSyncChangeFragment" into lmp-mr1-dev
* commit '7ce01fe3529c4095301dc49836953a00f604eeed':
Save missing state in ConfirmAutoSyncChangeFragment
-rw-r--r-- | src/com/android/settings/accounts/AccountSettings.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/settings/accounts/AccountSettings.java b/src/com/android/settings/accounts/AccountSettings.java index 8a183da..1bfa611 100644 --- a/src/com/android/settings/accounts/AccountSettings.java +++ b/src/com/android/settings/accounts/AccountSettings.java @@ -536,6 +536,7 @@ public class AccountSettings extends SettingsPreferenceFragment */ public static class ConfirmAutoSyncChangeFragment extends DialogFragment { private static final String SAVE_ENABLING = "enabling"; + private static final String SAVE_USER_HANDLE = "userHandle"; private boolean mEnabling; private UserHandle mUserHandle; @@ -554,6 +555,7 @@ public class AccountSettings extends SettingsPreferenceFragment final Context context = getActivity(); if (savedInstanceState != null) { mEnabling = savedInstanceState.getBoolean(SAVE_ENABLING); + mUserHandle = (UserHandle) savedInstanceState.getParcelable(SAVE_USER_HANDLE); } final AlertDialog.Builder builder = new AlertDialog.Builder(context); @@ -581,6 +583,7 @@ public class AccountSettings extends SettingsPreferenceFragment public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putBoolean(SAVE_ENABLING, mEnabling); + outState.putParcelable(SAVE_USER_HANDLE, mUserHandle); } } // TODO Implement a {@link SearchIndexProvider} to allow Indexing and Search of account types |