mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Merge "Don't delete legacy shortcuts in loadWorkspace()" into ub-launcher3-dorval
This commit is contained in:
@@ -1062,7 +1062,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