Skip to content

Commit 48bb104

Browse files
committed
- fix Baseflow#1557 with testerror
1 parent 0b4c4ae commit 48bb104

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

geolocator_android/android/src/main/java/com/baseflow/geolocator/location/FusedLocationClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,13 @@ public void isLocationServiceEnabled(LocationServiceListener listener) {
189189
listener.onLocationServiceError(ErrorCodes.locationServicesDisabled);
190190
}
191191
} catch (RuntimeExecutionException e) {
192-
listener.onLocationServiceError(ErrorCodes.locationServicesDisabled); // ← Listener aufrufen
192+
listener.onLocationServiceError(ErrorCodes.locationServicesDisabled);
193+
return;// ← Listener aufrufen
193194
}
194195
})
195196
.addOnFailureListener((e) -> {
196197
listener.onLocationServiceError(ErrorCodes.locationServicesFailed);
198+
return;
197199
});
198200
}
199201

0 commit comments

Comments
 (0)