summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/util/ManagedProfileHeuristic.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-03-21 15:12:01 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-03-21 15:14:43 -0700
commit24bb66a1c5a435ab0c55b4a97e788bdc2595bf84 (patch)
tree9adb87cf1377a5ccfce25f59e2295d4564a6c6c9 /src/com/android/launcher3/util/ManagedProfileHeuristic.java
parentaeb60bffc9a5a9a45bac59b189f9d448b1c63320 (diff)
downloadandroid_packages_apps_Trebuchet-24bb66a1c5a435ab0c55b4a97e788bdc2595bf84.tar.gz
android_packages_apps_Trebuchet-24bb66a1c5a435ab0c55b4a97e788bdc2595bf84.tar.bz2
android_packages_apps_Trebuchet-24bb66a1c5a435ab0c55b4a97e788bdc2595bf84.zip
Removing the profile extra from intent and using the profile id from the profile column
The intent extra is not always correct as the profile id can change during backup restore. This allows us to use a consistant behavior everywhere. Change-Id: I004bd244204ca91758b1d42488e1fc13b0ccb998
Diffstat (limited to 'src/com/android/launcher3/util/ManagedProfileHeuristic.java')
-rw-r--r--src/com/android/launcher3/util/ManagedProfileHeuristic.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/util/ManagedProfileHeuristic.java b/src/com/android/launcher3/util/ManagedProfileHeuristic.java
index 85a000cd8..ce603c4c2 100644
--- a/src/com/android/launcher3/util/ManagedProfileHeuristic.java
+++ b/src/com/android/launcher3/util/ManagedProfileHeuristic.java
@@ -121,7 +121,7 @@ public class ManagedProfileHeuristic {
.isQuietModeEnabled(user);
for (int i = 0; i < count; i++) {
LauncherActivityInstallInfo info = apps.get(i);
- AppInfo appInfo = new AppInfo(mContext, info.info, user, quietModeEnabled);
+ AppInfo appInfo = new AppInfo(info.info, user, quietModeEnabled);
mIconCache.getTitleAndIcon(appInfo, info.info, false /* useLowResIcon */);
ShortcutInfo si = appInfo.makeShortcut();
((info.installTime <= folderCreationTime) ? workFolderApps : homescreenApps).add(si);