Merge "Remote legacy shortcut when failed to migrate" into main

This commit is contained in:
Pinyao Ting authored and Android (Google) Code Review committed 2024-03-14 17:17:45 +00:00
commit ebd958dc94
1 file changed
+6 -1
@@ -152,7 +152,12 @@ public class LauncherDbUtils {
}
ShortcutInfo info = infoBuilder.build();
if (!PinRequestHelper.createRequestForShortcut(context, info).accept()) {
try {
if (!PinRequestHelper.createRequestForShortcut(context, info).accept()) {
deletedShortcuts.add(lc.id);
continue;
}
} catch (Exception e) {
deletedShortcuts.add(lc.id);
continue;
}