summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2023-12-23 00:52:30 +0100
committerLeonard Kugis <leonard@kug.is>2023-12-23 00:52:30 +0100
commiteab77a885f6cca1d785ca57c4cd9182dc1a898cf (patch)
tree7dba714b870895220d815368d7762212ff10c5eb /app/src/main/res
parent98df413858d1ac577f9c510a9490f382b3f848b4 (diff)
Implemented altitude/speed/jitter parameters
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_fake_location.xml103
-rw-r--r--app/src/main/res/values/strings.xml4
2 files changed, 107 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_fake_location.xml b/app/src/main/res/layout/fragment_fake_location.xml
index 5da95e1..47ed7da 100644
--- a/app/src/main/res/layout/fragment_fake_location.xml
+++ b/app/src/main/res/layout/fragment_fake_location.xml
@@ -83,6 +83,109 @@
/>
</RadioGroup>
+ <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_altitude"
+ android:layout_gravity="center_horizontal"
+ android:layout_height="wrap_content"
+ android:layout_width="0dp"
+ android:text="@string/location_altitude"
+ android:lineSpacingExtra="5sp"
+ />
+
+ <EditText
+ android:id="@+id/altitude"
+ android:inputType="numberDecimal"
+ android:layout_width="wrap_content"
+ android:layout_height="24dp"
+ />
+
+ </LinearLayout>
+
+ <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_speed"
+ android:layout_gravity="center_horizontal"
+ android:layout_height="wrap_content"
+ android:layout_width="0dp"
+ android:text="@string/location_speed"
+ android:lineSpacingExtra="5sp"
+ />
+
+ <EditText
+ android:id="@+id/speed"
+ android:inputType="numberDecimal"
+ android:layout_width="wrap_content"
+ android:layout_height="24dp"
+ />
+
+ </LinearLayout>
+
+ <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_jitter"
+ android:layout_gravity="center_horizontal"
+ android:layout_height="wrap_content"
+ android:layout_width="0dp"
+ android:text="@string/location_jitter"
+ android:lineSpacingExtra="5sp"
+ />
+
+ <EditText
+ android:id="@+id/jitter"
+ android:inputType="numberDecimal"
+ android:layout_width="wrap_content"
+ android:layout_height="24dp"
+ />
+
+ </LinearLayout>
+
+ <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 aa33837..416a0d2 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -82,6 +82,10 @@
<!-- Location -->
<string name="location_title" weblate_ctx="location-1">Manage my location</string>
<string name="location_info" weblate_ctx="location-1">Your location can reveal a lot about yourself or your activities.\n\nManage my location enables you to use a fake location instead of your real position. This way, your real location isn\'t shared with applications that might be snooping too much.</string>
+ <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>