Fix missed use of old int version code in shortcut manager.

Bug: 64459786
Test: manual
Change-Id: If0f8a19e72e259cceec71ba3490204298e38a478
This commit is contained in:
Dianne Hackborn
2017-12-11 16:44:08 -08:00
parent 0ff7a642da
commit 449479757f

View File

@@ -148,7 +148,7 @@ class ShortcutPackageInfo {
if (!anyVersionOkay && (currentPackage.getLongVersionCode() < mBackupSourceVersionCode)) {
Slog.w(TAG, String.format(
"Can't restore: package current version %d < backed up version %d",
currentPackage.versionCode, mBackupSourceVersionCode));
currentPackage.getLongVersionCode(), mBackupSourceVersionCode));
return ShortcutInfo.DISABLED_REASON_VERSION_LOWER;
}
return ShortcutInfo.DISABLED_REASON_NOT_DISABLED;