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

This commit is contained in:
TreeHugger Robot
2017-12-12 05:06:02 +00:00
committed by Android (Google) Code Review

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;