Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Fix PendingIntent mutability for Location Updates on Android 12
Browse files Browse the repository at this point in the history
  • Loading branch information
joostfunkekupper committed Oct 27, 2021
1 parent 186b071 commit f18a479
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class MyLocationManager private constructor(private val context: Context) {
context,
0,
intent,
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
)
} else {
PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT)
Expand Down

0 comments on commit f18a479

Please sign in to comment.