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

Commit 75f9be30 authored by Ashwini Oruganti's avatar Ashwini Oruganti Committed by Android (Google) Code Review
Browse files

Merge "Enforce the PendingIntent mutability flag requirement for chrome"

parents 9fc3177f 3574da88
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -379,8 +379,7 @@ public final class PendingIntent implements Parcelable {
        if (Compatibility.isChangeEnabled(PENDING_INTENT_EXPLICIT_MUTABILITY_REQUIRED)
                && !flagImmutableSet && !flagMutableSet) {

            //TODO(b/178065720) Remove check for chrome and enforce this requirement
            if (packageName.equals("com.android.chrome") || mInstrumentation.isInstrumenting()) {
            if (mInstrumentation.isInstrumenting()) {
                Log.e(TAG, msg);
            } else {
                throw new IllegalArgumentException(msg);