From 96fe3d287afc3da86bb833b5a5207effe17e35bb Mon Sep 17 00:00:00 2001 From: Steve Hannah Date: Sun, 24 Nov 2024 14:45:28 -0800 Subject: [PATCH] hard-coded FLAG_MUTABLE because not available in older versions --- .../codename1/location/AndroidLocationPlayServiceManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ports/Android/src/com/codename1/location/AndroidLocationPlayServiceManager.java b/Ports/Android/src/com/codename1/location/AndroidLocationPlayServiceManager.java index d0d072cb14..bc135b06de 100644 --- a/Ports/Android/src/com/codename1/location/AndroidLocationPlayServiceManager.java +++ b/Ports/Android/src/com/codename1/location/AndroidLocationPlayServiceManager.java @@ -66,7 +66,7 @@ public class AndroidLocationPlayServiceManager extends com.codename1.location.Lo LifecycleListener { - + private static final int FLAG_MUTABLE = 33554432; static class ParcelableUtil { public static byte[] marshall(Parcelable parceable) { Parcel parcel = Parcel.obtain(); @@ -482,7 +482,7 @@ private PendingIntent createGeofencePendingIntent( AndroidNativeUtil.getContext().getApplicationContext(), 0, intent, - PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE + PendingIntent.FLAG_UPDATE_CURRENT | FLAG_MUTABLE ); return geofencePendingIntent; } else {