From f18a47952e9e89a7606d8f0735ec5880c1744b90 Mon Sep 17 00:00:00 2001 From: Joost Funke Kupper Date: Wed, 27 Oct 2021 12:15:29 +1100 Subject: [PATCH] Fix PendingIntent mutability for Location Updates on Android 12 --- .../locationupdatesbackgroundkotlin/data/MyLocationManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LocationUpdatesBackgroundKotlin/app/src/main/java/com/google/android/gms/location/sample/locationupdatesbackgroundkotlin/data/MyLocationManager.kt b/LocationUpdatesBackgroundKotlin/app/src/main/java/com/google/android/gms/location/sample/locationupdatesbackgroundkotlin/data/MyLocationManager.kt index 31a02487..1d014c47 100644 --- a/LocationUpdatesBackgroundKotlin/app/src/main/java/com/google/android/gms/location/sample/locationupdatesbackgroundkotlin/data/MyLocationManager.kt +++ b/LocationUpdatesBackgroundKotlin/app/src/main/java/com/google/android/gms/location/sample/locationupdatesbackgroundkotlin/data/MyLocationManager.kt @@ -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)