diff options
author | Hasib Prince <hasibprince@e.email> | 2022-09-05 06:07:10 +0000 |
---|---|---|
committer | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2022-09-05 06:07:10 +0000 |
commit | 75f1a289daa4131aad939b4f4189c604f4afc2d3 (patch) | |
tree | caa99d1aecab224b2dae1a0928a7a04c0c0cde21 /app/src/main | |
parent | 47f580838db0185292c989fb448f2bcb6ab33dac (diff) |
Apply 1 suggestion(s) to 1 file(s)
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/foundation/e/privacycentralapp/domain/usecases/FakeLocationStateUseCase.kt | 4 |
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 |