From 7dd9a449220636b4a42a1a808051e8a971734227 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 9 Jun 2022 21:11:08 +0200 Subject: [PATCH] Added remark --- app/src/main/java/eu/faircode/email/PendingIntentCompat.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/PendingIntentCompat.java b/app/src/main/java/eu/faircode/email/PendingIntentCompat.java index 4e9674ae97..5dd18a26e4 100644 --- a/app/src/main/java/eu/faircode/email/PendingIntentCompat.java +++ b/app/src/main/java/eu/faircode/email/PendingIntentCompat.java @@ -32,6 +32,9 @@ public class PendingIntentCompat { // https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability + // Xiaomi Android 11: Too many PendingIntent created for uid nnnnn + // https://stackoverflow.com/questions/71266853/xiaomi-android-11-securityexception-too-many-pendingintent-created + public static PendingIntent getActivity(Context context, int requestCode, Intent intent, int flags) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S || (flags & PendingIntent.FLAG_MUTABLE) != 0) return PendingIntent.getActivity(context, requestCode, intent, flags);