Merge "Fix missed use of old int version code in shortcut manager."
This commit is contained in:
committed by
Android (Google) Code Review
commit
c0d9aa1633
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user