diff options
author | Leonard Kugis <leonard@kug.is> | 2024-01-03 23:15:31 +0100 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2024-01-03 23:15:31 +0100 |
commit | 5e35f14b7bc6b0425ec26b4286451d9f33317d49 (patch) | |
tree | 48566496a4275355c55871d306c700e011e60189 /app/src/main | |
parent | 992fa2d9a9bc519215c0b352688691ba012ca04a (diff) |
Fixed route loading and UI fixes
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationFragment.kt | 6 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationFragment.kt b/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationFragment.kt index a155216..3aaeb61 100644 --- a/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationFragment.kt +++ b/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationFragment.kt @@ -479,10 +479,10 @@ class FakeLocationFragment : NavToolbarFragment(R.layout.fragment_fake_location) binding.edittextLongitude.setText(state.specificLongitude?.toString()) } - if(route == null) { - binding.locationRoutePath.text = "No valid route selected" + if(state.route == null) { + binding.locationRoutePath.text = getString(R.string.location_route_no_route) } else { - binding.locationRoutePath.text = "Route valid" + binding.locationRoutePath.text = getString(R.string.location_route_valid) } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2379ab9..638f157 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -101,6 +101,8 @@ <string name="location_route_loop">Loop route</string> <string name="location_route_start">Start route</string> <string name="location_route_stop">Stop route</string> + <string name="location_route_no_route">No route selected</string> + <string name="location_route_valid">Route loaded.</string> <!-- Trackers --> <string name="trackers_title" weblate_ctx="trackers-1">Manage apps\' trackers</string> |