summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/users
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2013-05-29 09:39:07 -0700
committerAmith Yamasani <yamasani@google.com>2013-05-29 09:39:07 -0700
commitf14e6751c383df59bb1e4ab3b6e0556cfe04b80a (patch)
treebaf6d29a6ade9ae53d749151d25cb6128059f441 /src/com/android/settings/users
parent503783c48299a7879ae3a7e2e194a298410ab8d9 (diff)
downloadpackages_apps_Settings-f14e6751c383df59bb1e4ab3b6e0556cfe04b80a.zip
packages_apps_Settings-f14e6751c383df59bb1e4ab3b6e0556cfe04b80a.tar.gz
packages_apps_Settings-f14e6751c383df59bb1e4ab3b6e0556cfe04b80a.tar.bz2
Reduce jank in User Settings
Don't recreate the list on resume. Cache the default circled icon. Bug: 8802380 Change-Id: I46520b591fc3ffd5e51a1c7dda86e811c03a76a2
Diffstat (limited to 'src/com/android/settings/users')
-rw-r--r--src/com/android/settings/users/UserSettings.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/com/android/settings/users/UserSettings.java b/src/com/android/settings/users/UserSettings.java
index 193e8c9..5145e10 100644
--- a/src/com/android/settings/users/UserSettings.java
+++ b/src/com/android/settings/users/UserSettings.java
@@ -201,15 +201,10 @@ public class UserSettings extends SettingsPreferenceFragment
loadProfile();
setHasOptionsMenu(true);
IntentFilter filter = new IntentFilter(Intent.ACTION_USER_REMOVED);
+ filter.addAction(Intent.ACTION_USER_ADDED);
filter.addAction(Intent.ACTION_USER_INFO_CHANGED);
getActivity().registerReceiverAsUser(mUserChangeReceiver, UserHandle.ALL, filter, null,
mHandler);
- }
-
- @Override
- public void onResume() {
- super.onResume();
- loadProfile();
updateUserList();
}