summaryrefslogtreecommitdiff
path: root/app/src/main/java/foundation/e
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/foundation/e')
-rw-r--r--app/src/main/java/foundation/e/privacycentralapp/domain/usecases/FakeLocationStateUseCase.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/foundation/e/privacycentralapp/domain/usecases/FakeLocationStateUseCase.kt b/app/src/main/java/foundation/e/privacycentralapp/domain/usecases/FakeLocationStateUseCase.kt
index 9f39312..cba1548 100644
--- a/app/src/main/java/foundation/e/privacycentralapp/domain/usecases/FakeLocationStateUseCase.kt
+++ b/app/src/main/java/foundation/e/privacycentralapp/domain/usecases/FakeLocationStateUseCase.kt
@@ -139,8 +139,8 @@ class FakeLocationStateUseCase(
override fun onLocationChanged(location: Location) {
currentLocation.update { previous ->
- if ((previous?.time?: 0) + 1800 < location.time ||
- (previous?.accuracy?: Float.MAX_VALUE) > location.accuracy) {
+ if ((previous?.time ?: 0) + 1800 < location.time ||
+ (previous?.accuracy ?: Float.MAX_VALUE) > location.accuracy) {
location
} else {
previous