Always scan the Settings app for updated shortcuts. am: ac2898228e

am: f0644d03a2

Change-Id: I513b505be9cd3b273b76bd3d8578326400ddceb3
This commit is contained in:
Makoto Onuki
2016-11-01 01:17:30 +00:00
committed by android-build-merger

View File

@@ -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);
}