diff options
author | Leonard Kugis <leonard@kug.is> | 2024-01-04 02:40:18 +0100 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2024-01-04 02:40:18 +0100 |
commit | b7453581a401fb57eb52edddcb27ea048a9c7389 (patch) | |
tree | c3c7bda8202bfeff1f2af0564787f450dc26ed13 /app/src/main/java | |
parent | aa93b37883deb00c6ca74ad72a5464284fe9171f (diff) |
Removed unused code
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/foundation/e/advancedprivacy/domain/usecases/FakeLocationStateUseCase.kt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/FakeLocationStateUseCase.kt b/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/FakeLocationStateUseCase.kt index 1f92554..49b9317 100644 --- a/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/FakeLocationStateUseCase.kt +++ b/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/FakeLocationStateUseCase.kt @@ -82,30 +82,6 @@ class FakeLocationStateUseCase( permissionsModule.toggleDangerousPermission(appDesc, android.Manifest.permission.ACCESS_FINE_LOCATION, true) } - // private fun applySettings(isEnabled: Boolean, isSpecificLocation: Boolean = false) { - // _configuredLocationMode.value = computeLocationMode(isEnabled, - // localStateRepository.locationMode, - // localStateRepository.fakeAltitude, - // localStateRepository.fakeSpeed, - // localStateRepository.fakeJitter, - // localStateRepository.fakeLocation, - // localStateRepository.routeLoopEnabled, - // isSpecificLocation) - - // if (isEnabled && hasAcquireMockLocationPermission()) { - // fakeLocationModule.startFakeLocation() - // localStateRepository.setLocationMode(configuredLocationMode.value.mode) - // fakeLocationModule.setFakeLocation(localStateRepository.fakeAltitude.toDouble(), - // localStateRepository.fakeSpeed, - // localStateRepository.fakeJitter, - // localStateRepository.fakeLocation.first.toDouble(), - // localStateRepository.fakeLocation.second.toDouble()) - // } else { - // fakeLocationModule.stopFakeLocation() - // localStateRepository.setLocationMode(LocationMode.REAL_LOCATION) - // } - // } - private fun hasAcquireMockLocationPermission(): Boolean { return (permissionsModule.getAppOpMode(appDesc, AppOpsManager.OPSTR_MOCK_LOCATION) == AppOpModes.ALLOWED) || permissionsModule.setAppOpMode(appDesc, AppOpsManager.OPSTR_MOCK_LOCATION, AppOpModes.ALLOWED) |