commit | 957c13f032fc4088b3273cec08603c67c069e2c6 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Fri May 01 13:02:20 2015 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Fri May 01 13:02:20 2015 -0700 |
tree | a85aa44c8c58907a84fb39789ca464cdfc1a01b0 | |
parent | 65832b6267053220e3c4b798db882a2f0641ad4d [diff] [blame] |
Handling managed profile creation in the model as the activity can get killed in the background. Change-Id: I95f62cf268fe642c9a2bb4975eb92bf8e12d23a9
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java index 9570735..e62c689 100644 --- a/src/com/android/launcher3/LauncherModel.java +++ b/src/com/android/launcher3/LauncherModel.java
@@ -1279,6 +1279,9 @@ if (callbacks != null) { callbacks.bindSearchablesChanged(); } + } else if (LauncherAppsCompat.ACTION_MANAGED_PROFILE_ADDED.equals(action) + || LauncherAppsCompat.ACTION_MANAGED_PROFILE_REMOVED.equals(action)) { + forceReload(); } }