summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--app/src/main/res/layout/fragment_fake_location.xml27
-rw-r--r--app/src/main/res/values/strings.xml1
4 files changed, 0 insertions, 35 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,
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"
/>
</com.google.android.material.textfield.TextInputLayout>
-<!--
- <LinearLayout
- android:layout_height="match_parent"
- android:padding="16dp"
- android:layout_width="match_parent"
- android:orientation="horizontal"
- tools:context=".main.MainActivity"
- >
-
- <TextView
- android:id="@+id/fake_location_info_joystick"
- android:layout_gravity="center_horizontal"
- android:layout_height="wrap_content"
- android:layout_width="0dp"
- android:text="@string/location_joystick"
- android:lineSpacingExtra="5sp"
- />
-
- <Switch
- android:id="@+id/joystick_enable"
- android:layout_width="wrap_content"
- android:layout_height="24dp"
- android:checked="true"
- />
-
- </LinearLayout>
--->
<FrameLayout
android:layout_marginTop="16dp"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index f144186..4a8cef3 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -85,7 +85,6 @@
<string name="location_altitude">Altitude [m]</string>
<string name="location_speed">Speed [km/h]</string>
<string name="location_jitter">Jitter [m]</string>
- <string name="location_joystick">Enable joystick</string>
<string name="location_use_real_location" weblate_ctx="location-1">Use my real location</string>
<string name="location_use_random_location" weblate_ctx="location-1">Use a random plausible location</string>
<string name="location_use_specific_location" weblate_ctx="location-1">Use a specific location</string>