CherishOS / android_frameworks_base

Other
13 stars 68 forks source link

Add FLAG_IMMUTABLE flag to PendingIntent #69

Closed Amsal1 closed 2 years ago

Amsal1 commented 2 years ago

Fixes: 02-26 19:43:23.067 22173 22173 E AndroidRuntime: java.lang.IllegalArgumentException: com.android.systemui: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. 02-26 19:43:23.067 22173 22173 E AndroidRuntime: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.