Added remark

This commit is contained in:
M66B 2022-06-09 21:11:08 +02:00
parent bf67c973d2
commit 7dd9a44922
1 changed files with 3 additions and 0 deletions

View File

@ -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);