From f7e235848796909f52dbfaea1bc83dbb3e4808e0 Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Tue, 26 Dec 2023 03:15:50 +0100 Subject: Removed joystick code --- .../features/location/FakeLocationState.kt | 1 - .../features/location/FakeLocationViewModel.kt | 6 ----- app/src/main/res/layout/fragment_fake_location.xml | 27 ---------------------- app/src/main/res/values/strings.xml | 1 - 4 files changed, 35 deletions(-) (limited to 'app') 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, diff --git a/app/src/main/res/layout/fragment_fake_location.xml b/app/src/main/res/layout/fragment_fake_location.xml index 7890edc..d00593e 100644 --- a/app/src/main/res/layout/fragment_fake_location.xml +++ b/app/src/main/res/layout/fragment_fake_location.xml @@ -140,33 +140,6 @@ android:layout_width="match_parent" /> - Altitude [m] Speed [km/h] Jitter [m] - Enable joystick Use my real location Use a random plausible location Use a specific location -- cgit v1.2.1