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

Commit ead1761c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Ignore malformed shortcuts" into tm-dev am: 9bce0040 am: 3adfd733 am: f150b490

parents ae03aa54 f150b490
Loading
Loading
Loading
Loading
+9 −4
Original line number Original line Diff line number Diff line
@@ -1962,10 +1962,15 @@ class ShortcutPackage extends ShortcutPackageItem {


                            continue;
                            continue;
                        case TAG_SHORTCUT:
                        case TAG_SHORTCUT:
                            try {
                                final ShortcutInfo si = parseShortcut(parser, packageName,
                                final ShortcutInfo si = parseShortcut(parser, packageName,
                                        shortcutUser.getUserId(), fromBackup);
                                        shortcutUser.getUserId(), fromBackup);
                                // Don't use addShortcut(), we don't need to save the icon.
                                // Don't use addShortcut(), we don't need to save the icon.
                                ret.mShortcuts.put(si.getId(), si);
                                ret.mShortcuts.put(si.getId(), si);
                            } catch (Exception e) {
                                // b/246540168 malformed shortcuts should be ignored
                                Slog.e(TAG, "Failed parsing shortcut.", e);
                            }
                            continue;
                            continue;
                        case TAG_SHARE_TARGET:
                        case TAG_SHARE_TARGET:
                            ret.mShareTargets.add(ShareTargetInfo.loadFromXml(parser));
                            ret.mShareTargets.add(ShareTargetInfo.loadFromXml(parser));