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

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

Merge "Enforce that a PendingIntent has an explicit mutability flag on creation."

parents ba3c0ce5 dd12e9c1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -352,7 +352,9 @@ public final class PendingIntent implements Parcelable {

        if (Compatibility.isChangeEnabled(PENDING_INTENT_EXPLICIT_MUTABILITY_REQUIRED)
                && !flagImmutableSet && !flagMutableSet) {
            Log.e(TAG, msg);
            Log.wtf(TAG, msg);
            throw new IllegalArgumentException(
                "Please specify an explicit mutability flag (FLAG_IMMUTABLE or FLAG_MUTABLE)");
        }
    }