Merge "Don't delete legacy shortcuts in loadWorkspace()" into ub-launcher3-dorval
am: 23cae10576
Change-Id: Icb8b72be29249e5df4505bb02c75c6f2a90d6bee
This commit is contained in:
@@ -1049,7 +1049,8 @@ public class LauncherModel extends BroadcastReceiver
|
||||
info = c.loadSimpleShortcut();
|
||||
|
||||
// Shortcuts are only available on the primary profile
|
||||
if (pmHelper.isAppSuspended(targetPkg, c.user)) {
|
||||
if (!TextUtils.isEmpty(targetPkg)
|
||||
&& pmHelper.isAppSuspended(targetPkg, c.user)) {
|
||||
disabledState |= ShortcutInfo.FLAG_DISABLED_SUSPENDED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user