diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-28 21:34:53 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-28 21:34:53 +0100 |
commit | 247c0b5eca6ee988ead3e66f1d9ea990385d315e (patch) | |
tree | 1941a71f740beb5c20c3cf087fadb13974cd1c6e /app/src/main/java/se/leap | |
parent | 3228b17f43b232116c192728438954c4c1412ec3 (diff) |
use 'recommended location' or the location name instead of 'select location' in the location button
Diffstat (limited to 'app/src/main/java/se/leap')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); |