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

Commit 44947975 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

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

Bug: 64459786
Test: manual
Change-Id: If0f8a19e72e259cceec71ba3490204298e38a478
parent 0ff7a642
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -148,7 +148,7 @@ class ShortcutPackageInfo {
        if (!anyVersionOkay && (currentPackage.getLongVersionCode() < mBackupSourceVersionCode)) {
        if (!anyVersionOkay && (currentPackage.getLongVersionCode() < mBackupSourceVersionCode)) {
            Slog.w(TAG, String.format(
            Slog.w(TAG, String.format(
                    "Can't restore: package current version %d < backed up version %d",
                    "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_VERSION_LOWER;
        }
        }
        return ShortcutInfo.DISABLED_REASON_NOT_DISABLED;
        return ShortcutInfo.DISABLED_REASON_NOT_DISABLED;