summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorHasib Prince <hasibprince@e.email>2022-09-05 06:07:10 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2022-09-05 06:07:10 +0000
commit75f1a289daa4131aad939b4f4189c604f4afc2d3 (patch)
treecaa99d1aecab224b2dae1a0928a7a04c0c0cde21 /app/src
parent47f580838db0185292c989fb448f2bcb6ab33dac (diff)
Apply 1 suggestion(s) to 1 file(s)
Diffstat (limited to 'app/src')
-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