From 5e35f14b7bc6b0425ec26b4286451d9f33317d49 Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Wed, 3 Jan 2024 23:15:31 +0100 Subject: Fixed route loading and UI fixes --- .../e/advancedprivacy/features/location/FakeLocationFragment.kt | 6 +++--- app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'app/src') 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 @@ Loop route Start route Stop route + No route selected + Route loaded. Manage apps\' trackers -- cgit v1.2.1