From 247c0b5eca6ee988ead3e66f1d9ea990385d315e Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sun, 28 Nov 2021 21:34:53 +0100 Subject: use 'recommended location' or the location name instead of 'select location' in the location button --- .../main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java | 3 ++- app/src/main/res/values/strings.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java b/app/src/main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java index 45c6307a..14673874 100644 --- a/app/src/main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java @@ -477,7 +477,8 @@ public class EipFragment extends Fragment implements Observer { greyscaleBackground(); locationButton.setLocationLoad(UNKNOWN); locationButton.showBridgeIndicator(false); - locationButton.setText(getString(R.string.gateway_selection_title)); + String city = getPreferredCity(getContext()); + locationButton.setText(city == null ? getString(R.string.gateway_selection_recommended_location) : city); locationButton.showRecommendedIndicator(false); mainDescription.setText(R.string.eip_state_insecure); subDescription.setText(R.string.connection_not_connected); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c32e0d3c..9f1e73b1 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -152,7 +152,7 @@ Update failed. No permissions to install app. Select location - Use recommended location + Recommended location Recommended Manually select Automatically use best connection. -- cgit v1.2.3