Remote legacy shortcut when failed to migrate

Bug: 329421105
Test: manual
Flag: NA
Change-Id: I84071a1711a36a49ad2ef71dc017ae78e4dd1267
This commit is contained in:
Pinyao Ting
2024-03-13 23:47:24 +00:00
parent e81e048183
commit f5505bf50e
@@ -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;
}