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

This commit is contained in:
Pinyao Ting
2024-03-14 17:17:45 +00:00
committed by Android (Google) Code Review
@@ -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;
}