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

Commit ef8e517e authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Avoids setting package name while selector is set" into main

parents 3cdc3abc d9ac3f98
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1074,10 +1074,12 @@ class Task extends TaskFragment {
        // as the one in the task because either one of them could be the alias activity.
        if (Objects.equals(realActivity, r.mActivityComponent) && this.intent != null) {
            intent.setComponent(this.intent.getComponent());
            if (intent.getSelector() == null) {
                // Make sure the package name the same to prevent one of the intent is set while the
                // other one is not.
                intent.setPackage(this.intent.getPackage());
            }
        }
        return intent.filterEquals(this.intent);
    }