summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/settings/profiles/AppGroupConfig.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/com/android/settings/profiles/AppGroupConfig.java b/src/com/android/settings/profiles/AppGroupConfig.java
index b05f485..5e25bce 100644
--- a/src/com/android/settings/profiles/AppGroupConfig.java
+++ b/src/com/android/settings/profiles/AppGroupConfig.java
@@ -82,6 +82,10 @@ public class AppGroupConfig extends SettingsPreferenceFragment
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ if (savedInstanceState != null) {
+ mPackageToDelete = savedInstanceState.getString("package_delete");
+ }
+
mProfileManager = ProfileManager.getInstance(getActivity());
addPreferencesFromResource(R.xml.application_list);
@@ -319,4 +323,10 @@ public class AppGroupConfig extends SettingsPreferenceFragment
mNotificationGroup.removePackage(mPackageToDelete);
updatePackages();
}
-}
+
+ @Override
+ public void onSaveInstanceState(Bundle in) {
+ super.onSaveInstanceState(in);
+ in.putString("package_delete", mPackageToDelete);
+ }
+} \ No newline at end of file