summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2013-05-08 16:43:58 -0700
committerAmith Yamasani <yamasani@google.com>2013-05-09 14:44:38 -0700
commit6fc1d4e8e6549b0d58ea23b4dd3f26329ec19f38 (patch)
treeed2e6217249eb1305202fcbbecbb67c55c5f4e9e /core/java
parente2322bdd7865552aa31f93bbf4e60d4d9a7d0973 (diff)
Cache the scaled avatar drawables in the keyguard user switcher
Loading the avatar icons and drawing them into the sized bitmap turns out to be quite expensive and the cost increases with number of users. Caching them shaves off several hundred milliseconds from Keyguard inflation time during user switching on the lockscreen. For instance, 15ms vs. 750ms with 3 avatars on a certain 7" tablet. Bug: 7986933 Change-Id: I3e2065bfa25aa263133ba204ca364c3b04d7c0ff
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/content/Intent.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index bfc7bf5dff85..65f904ff4f3d 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -2567,8 +2567,7 @@ public class Intent implements Parcelable, Cloneable {
/**
* Broadcast sent to the system when a user's information changes. Carries an extra
* {@link #EXTRA_USER_HANDLE} to indicate which user's information changed.
- * This is only sent to registered receivers, not manifest receivers. It is sent to the user
- * whose information has changed.
+ * This is only sent to registered receivers, not manifest receivers. It is sent to all users.
* @hide
*/
public static final String ACTION_USER_INFO_CHANGED =