mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Fix auto install add of installed activity
Reset the restore status for auto install icons where the activity is installed and enabled so the item is not stuck in the auto install state. Bug: 112664405 Test: manual - See issue Change-Id: I37116b6e6ecbe4215d96627f9b1ea6909d12a6c0
This commit is contained in:
committed by
Tony Wickham
parent
680e03847d
commit
a4c1002bac
@@ -227,16 +227,13 @@ public class PackageUpdatedTask extends BaseModelUpdateTask {
|
||||
isTargetValid = LauncherAppsCompat.getInstance(context)
|
||||
.isActivityEnabledForProfile(cn, mUser);
|
||||
}
|
||||
|
||||
if (si.hasStatusFlag(ShortcutInfo.FLAG_AUTOINSTALL_ICON)) {
|
||||
// Auto install icon
|
||||
if (!isTargetValid) {
|
||||
if (updateShortcutIntent(context, si, packageName)) {
|
||||
infoUpdated = true;
|
||||
} else if (si.hasPromiseIconUi()) {
|
||||
removedShortcuts.put(si.id, true);
|
||||
continue;
|
||||
}
|
||||
if (si.hasStatusFlag(ShortcutInfo.FLAG_AUTOINSTALL_ICON)
|
||||
&& !isTargetValid) {
|
||||
if (updateShortcutIntent(context, si, packageName)) {
|
||||
infoUpdated = true;
|
||||
} else if (si.hasPromiseIconUi()) {
|
||||
removedShortcuts.put(si.id, true);
|
||||
continue;
|
||||
}
|
||||
} else if (!isTargetValid) {
|
||||
removedShortcuts.put(si.id, true);
|
||||
|
||||
Reference in New Issue
Block a user