Merge "Removing the profile extra from intent and using the profile id from the profile column" into ub-launcher3-dorval
am: 77ff9a4343
Change-Id: Ib0cd8cb8f963b78a9cd53ed896aeb6e4f6163683
This commit is contained in:
@@ -1062,9 +1062,6 @@ public class LauncherModel extends BroadcastReceiver
|
||||
info.rank = c.getInt(rankIndex);
|
||||
info.spanX = 1;
|
||||
info.spanY = 1;
|
||||
// TODO: Remove this extra. Instead we should be using
|
||||
// itemInfo#user.
|
||||
info.intent.putExtra(ItemInfo.EXTRA_PROFILE, c.serialNumber);
|
||||
info.isDisabled |= disabledState;
|
||||
if (isSafeMode && !Utilities.isSystemApp(context, intent)) {
|
||||
info.isDisabled |= ShortcutInfo.FLAG_DISABLED_SAFEMODE;
|
||||
@@ -1684,7 +1681,7 @@ public class LauncherModel extends BroadcastReceiver
|
||||
for (int i = 0; i < apps.size(); i++) {
|
||||
LauncherActivityInfo app = apps.get(i);
|
||||
// This builds the icon bitmaps.
|
||||
mBgAllAppsList.add(new AppInfo(mContext, app, user, quietMode), app);
|
||||
mBgAllAppsList.add(new AppInfo(app, user, quietMode), app);
|
||||
}
|
||||
|
||||
final ManagedProfileHeuristic heuristic = ManagedProfileHeuristic.get(mContext, user);
|
||||
|
||||
Reference in New Issue
Block a user