mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Moving various runtime flags into the common base class.
Caching the ststemApp status for workspace shortcuts. Change-Id: I25663e1f04a9768afcca000294adcbb00ea1db7b
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package com.android.launcher3.model;
|
||||
|
||||
import static com.android.launcher3.ItemInfoWithIcon.FLAG_DISABLED_LOCKED_USER;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.UserHandle;
|
||||
|
||||
@@ -87,12 +89,12 @@ public class UserLockStateChangedTask extends BaseModelUpdateTask {
|
||||
removedKeys.add(key);
|
||||
continue;
|
||||
}
|
||||
si.isDisabled &= ~ShortcutInfo.FLAG_DISABLED_LOCKED_USER;
|
||||
si.runtimeStatusFlags &= ~FLAG_DISABLED_LOCKED_USER;
|
||||
si.updateFromDeepShortcutInfo(shortcut, context);
|
||||
si.iconBitmap = LauncherIcons.createShortcutIcon(shortcut, context,
|
||||
si.iconBitmap);
|
||||
} else {
|
||||
si.isDisabled |= ShortcutInfo.FLAG_DISABLED_LOCKED_USER;
|
||||
si.runtimeStatusFlags |= FLAG_DISABLED_LOCKED_USER;
|
||||
}
|
||||
updatedShortcutInfos.add(si);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user