mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Using package update event as well for restoring promise icons
> Sometimes a system app can be in disabled state. When the app is enabled or disabled, the system sends onPackageChanged event instead of onPackageAdded/onPackagesRemoved. Bug: 36911898 Change-Id: Id82f70421b95b23f9891c8d4b0b7e0e1d4cddf7b
This commit is contained in:
@@ -226,7 +226,9 @@ public class PackageUpdatedTask extends ExtendedModelTask {
|
||||
if (cn != null && matcher.matches(si, cn)) {
|
||||
AppInfo appInfo = addedOrUpdatedApps.get(cn);
|
||||
|
||||
if (si.isPromise() && mOp == OP_ADD) {
|
||||
// For system apps, package manager send OP_UPDATE when an
|
||||
// app is enabled.
|
||||
if (si.isPromise() && (mOp == OP_ADD || mOp == OP_UPDATE)) {
|
||||
if (si.hasStatusFlag(ShortcutInfo.FLAG_AUTOINSTALL_ICON)) {
|
||||
// Auto install icon
|
||||
LauncherAppsCompat launcherApps
|
||||
|
||||
Reference in New Issue
Block a user