summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2023-12-26 03:15:50 +0100
committerLeonard Kugis <leonard@kug.is>2023-12-26 03:15:50 +0100
commitf7e235848796909f52dbfaea1bc83dbb3e4808e0 (patch)
tree814c06fd1d8f97cbd6b4b1912988dc292105298b /app/src/main/java
parentbac5bd2e45cb41effa8e71cb86fabcd5283b17cb (diff)
Removed joystick code
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationState.kt1
-rw-r--r--app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationViewModel.kt6
2 files changed, 0 insertions, 7 deletions
diff --git a/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationState.kt b/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationState.kt
index fc4e0ab..132d5f6 100644
--- a/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationState.kt
+++ b/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationState.kt
@@ -27,7 +27,6 @@ data class FakeLocationState(
val altitude: Float? = null,
val speed: Float? = null,
val jitter: Float? = null,
- val joystick: Boolean = false,
val specificLatitude: Float? = null,
val specificLongitude: Float? = null,
val forceRefresh: Boolean = false,
diff --git a/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationViewModel.kt b/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationViewModel.kt
index 702b252..2a74a67 100644
--- a/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationViewModel.kt
+++ b/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationViewModel.kt
@@ -92,7 +92,6 @@ class FakeLocationViewModel(
is Action.UseRealLocationAction ->
fakeLocationStateUseCase.stopFakeLocation()
is Action.UpdateMockLocationParameters -> updateMockLocationParameters(action)
- is Action.UseJoystick -> enableJoystick()
}
}
@@ -111,10 +110,6 @@ class FakeLocationViewModel(
mockLocationParametersInputFlow.emit(action)
}
- private suspend fun enableJoystick() {
-
- }
-
sealed class SingleEvent {
object RequestLocationPermission : SingleEvent()
data class ErrorEvent(val error: String) : SingleEvent()
@@ -125,7 +120,6 @@ class FakeLocationViewModel(
object StopListeningLocation : Action()
object UseRealLocationAction : Action()
object UseRandomLocationAction : Action()
- object UseJoystick : Action()
data class UpdateMockLocationParameters(
val altitude: Float,
val speed: Float,