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

Commit f18a479

Browse files
Fix PendingIntent mutability for Location Updates on Android 12
1 parent 186b071 commit f18a479

File tree

1 file changed

+1
-1
lines changed
  • LocationUpdatesBackgroundKotlin/app/src/main/java/com/google/android/gms/location/sample/locationupdatesbackgroundkotlin/data

1 file changed

+1
-1
lines changed

LocationUpdatesBackgroundKotlin/app/src/main/java/com/google/android/gms/location/sample/locationupdatesbackgroundkotlin/data/MyLocationManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class MyLocationManager private constructor(private val context: Context) {
9696
context,
9797
0,
9898
intent,
99-
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
99+
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
100100
)
101101
} else {
102102
PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT)

0 commit comments

Comments
 (0)