Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5505bf5 authored by Pinyao Ting's avatar Pinyao Ting
Browse files

Remote legacy shortcut when failed to migrate

Bug: 329421105
Test: manual
Flag: NA
Change-Id: I84071a1711a36a49ad2ef71dc017ae78e4dd1267
parent e81e0481
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -152,10 +152,15 @@ public class LauncherDbUtils {
            }

            ShortcutInfo info = infoBuilder.build();
            try {
                if (!PinRequestHelper.createRequestForShortcut(context, info).accept()) {
                    deletedShortcuts.add(lc.id);
                    continue;
                }
            } catch (Exception e) {
                deletedShortcuts.add(lc.id);
                continue;
            }
            ContentValues update = new ContentValues();
            update.put(Favorites.ITEM_TYPE, Favorites.ITEM_TYPE_DEEP_SHORTCUT);
            update.put(Favorites.INTENT,