Merge "Using package update event as well for restoring promise icons" into ub-launcher3-dorval-polish
This commit is contained in:
committed by
Android (Google) Code Review
commit
b73fa5d7a4
@@ -226,7 +226,9 @@ public class PackageUpdatedTask extends ExtendedModelTask {
|
|||||||
if (cn != null && matcher.matches(si, cn)) {
|
if (cn != null && matcher.matches(si, cn)) {
|
||||||
AppInfo appInfo = addedOrUpdatedApps.get(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)) {
|
if (si.hasStatusFlag(ShortcutInfo.FLAG_AUTOINSTALL_ICON)) {
|
||||||
// Auto install icon
|
// Auto install icon
|
||||||
LauncherAppsCompat launcherApps
|
LauncherAppsCompat launcherApps
|
||||||
|
|||||||
Reference in New Issue
Block a user