Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8ce18a2 authored by Makoto Onuki's avatar Makoto Onuki Committed by android-build-merger
Browse files

Always scan the Settings app for updated shortcuts. am: ac289822 am: f0644d03 am: 4eb38c75

am: 9a927418

Change-Id: I6e26f3df974ae4c9f014c30e25e0cd1598fee26f
parents 03c8e3f7 9a927418
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -635,7 +635,11 @@ class ShortcutPackage extends ShortcutPackageItem {
                return false; // Shouldn't happen.
            }

            if (!isNewApp && !forceRescan) {
            // Always scan the settings app, since its version code is the same for DR and MR1.
            // TODO Fix it properly: b/32554059
            final boolean isSettings = "com.android.settings".equals(getPackageName());

            if (!isNewApp && !forceRescan && !isSettings) {
                // Return if the package hasn't changed, ie:
                // - version code hasn't change
                // - lastUpdateTime hasn't change
@@ -652,6 +656,11 @@ class ShortcutPackage extends ShortcutPackageItem {
                    return false;
                }
            }
            if (isSettings) {
                if (ShortcutService.DEBUG) {
                    Slog.d(TAG, "Always scan settings.");
                }
            }
        } finally {
            s.logDurationStat(Stats.PACKAGE_UPDATE_CHECK, start);
        }