summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2015-02-02 17:17:06 -0800
committerAdnan Begovic <adnan@cyngn.com>2015-10-27 13:36:29 -0700
commitc06cbc762f622acacad248105c02585220be9207 (patch)
tree8c9ad3c0e64faa7f18e1cbfd4d047224070d7050 /src/com/android/settings/profiles
parenta34d641fa0737cc39451e6bae05e83e217bb9cb7 (diff)
downloadpackages_apps_Settings-c06cbc762f622acacad248105c02585220be9207.zip
packages_apps_Settings-c06cbc762f622acacad248105c02585220be9207.tar.gz
packages_apps_Settings-c06cbc762f622acacad248105c02585220be9207.tar.bz2
Settings: apply default profile after resetting them
Change-Id: Ibdd09e069ec6c71b3e3f914614805b01bdf8a3dd Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r--src/com/android/settings/profiles/ProfilesSettings.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/profiles/ProfilesSettings.java b/src/com/android/settings/profiles/ProfilesSettings.java
index 0c3bcd9..e03cc53 100644
--- a/src/com/android/settings/profiles/ProfilesSettings.java
+++ b/src/com/android/settings/profiles/ProfilesSettings.java
@@ -211,6 +211,8 @@ public class ProfilesSettings extends SettingsPreferenceFragment {
public void onClick(DialogInterface dialog, int id) {
mProfileManager.resetAll();
mAdapter.refreshProfiles();
+ mProfileManager.setActiveProfile(
+ mProfileManager.getActiveProfile().getUuid());
}
})
.setNegativeButton(R.string.cancel, null)