commit | 823fd5090209017a029460e7dbd8ab9d51d013dd | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Tue Aug 04 11:40:13 2015 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Tue Aug 04 12:37:05 2015 -0700 |
tree | 9c8564ee6a098377aeb57b427bfeebbb6957355c | |
parent | 317698bd012c1930b83bb4e2e47ac9e363fa6c6a [diff] [blame] |
Creating a cache of users to avoid multiple calls to UserManager Bug: 22805101 Change-Id: I9cd270efd74fdd34a7eb738fc25797e6f1bf2487
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java index c6fa8ac..f029561 100644 --- a/src/com/android/launcher3/LauncherModel.java +++ b/src/com/android/launcher3/LauncherModel.java
@@ -1288,6 +1288,7 @@ } } else if (LauncherAppsCompat.ACTION_MANAGED_PROFILE_ADDED.equals(action) || LauncherAppsCompat.ACTION_MANAGED_PROFILE_REMOVED.equals(action)) { + UserManagerCompat.getInstance(context).enableAndResetCache(); forceReload(); } }