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

Commit 08738184 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing wrong target check

Test: compiled framework
Change-Id: Ia6fb1d8920fc0df066509c4c15a123e4459d2285
parent c1bb6ae5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ public final class AppTarget implements Parcelable {
         */
        @NonNull
        public Builder setTarget(@NonNull String packageName, @NonNull UserHandle user) {
            if (mPackageName == null) {
            if (mPackageName != null) {
                throw new IllegalArgumentException("Target is already set");
            }
            mPackageName = Preconditions.checkNotNull(packageName);