Merge "Remote legacy shortcut when failed to migrate" into main
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user