Was seeing some duplicated icons in the migration flow
-> The only delta between the two icons was slightly different flags -> No need to consider flags for the purposes of duplication Change-Id: I161f6ad6023d829e5ebbb15f1a9fbc9306795d80
This commit is contained in:
parent
4a080dcadd
commit
a33f11e20a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue