From 7eb8b9558f81736966a77505ae57ea31fbcb1f30 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Thu, 1 Feb 2018 11:31:03 -0800 Subject: [PATCH] Change "app version lower" shortcut restore error message. Unfortunately many large apps slightly change app versions depending on DPI/etc, meaning even if an app is the latest, its version code can still be lower than that on the previous device. In a near future, apps will no longer have to do this. So for now, let's just keep this behavior as-is and instead change the error message. Bug: 70809608 Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutManagerTestCases Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutHostTestCases Change-Id: Ia9e13a98e80b1d63660c619ac18d1b5052a51a4c --- core/res/res/values/strings.xml | 2 +- .../src/com/android/server/pm/ShortcutManagerTest1.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 3cde765e04cbb..ea55f3b956742 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -4811,7 +4811,7 @@ A toast message shown when an app shortcut that was restored from a previous device is clicked, but it cannot be started because the shortcut was created by a newer version of the app. --> - This shortcut requires latest app + App version downgraded, or isn\u2019t compatible with this shortcut