Skip to content

Colota - Android GPS Location tracker

fix(android): prevent crash on RejectedExecutionException

Max Dietrich9950ae951431
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 20ea92ce..0651e48d 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -86,8 +86,8 @@ android {
applicationId "com.Colota"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 9
- versionName "1.4.2"
+ versionCode 10
+ versionName "1.4.3"
// Expose build config to the module
buildConfigField "int", "MIN_SDK_VERSION", "${rootProject.ext.minSdkVersion}"
diff --git a/android/app/src/main/java/com/locata/LocationServiceModule.kt b/android/app/src/main/java/com/locata/LocationServiceModule.kt
index 200735c5..b9210cde 100644
--- a/android/app/src/main/java/com/locata/LocationServiceModule.kt
+++ b/android/app/src/main/java/com/locata/LocationServiceModule.kt
@@ -429,7 +429,6 @@ class LocationServiceModule(reactContext: ReactApplicationContext) :
if (loc == null) {
promise.resolve(null)
} else {
- else {
executeAsync(promise) {
locationUtils.getSilentZone(loc)
}