Remote legacy shortcut when failed to migrate
Bug: 329421105 Test: manual Flag: NA Change-Id: I84071a1711a36a49ad2ef71dc017ae78e4dd1267
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