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

Commit ac36ed6d authored by Adam Cohen's avatar Adam Cohen Committed by Android (Google) Code Review
Browse files

Merge "Was seeing some duplicated icons in the migration flow" into ub-now-queens

parents 32e34b84 a33f11e2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1480,9 +1480,13 @@ public class LauncherProvider extends ContentProvider {

                                    // Canonicalize
                                    // the Play Store sets the package parameter, but Launcher
                                    // does not, so we clear that out to keep them the same
                                    // does not, so we clear that out to keep them the same.
                                    // Also ignore intent flags for the purposes of deduping.
                                    intent.setPackage(null);
                                    int flags = intent.getFlags();
                                    intent.setFlags(0);
                                    final String key = intent.toUri(0);
                                    intent.setFlags(flags);
                                    if (seenIntents.contains(key)) {
                                        Launcher.addDumpLog(TAG, "skipping duplicate", true);
                                        continue;