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

Commit ebd958dc authored by Pinyao Ting's avatar Pinyao Ting Committed by Android (Google) Code Review
Browse files

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

parents 719075b5 f5505bf5
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,