diff options
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> |