summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-19 16:29:09 +0100
committercyBerta <cyberta@riseup.net>2021-11-19 16:29:09 +0100
commitd705c5cd224dedab5daadcaef0af4e2287f2bf74 (patch)
treeaa73c350321662e423d02e19f4cdf434ac82e8f3 /app/src/main
parent038da31d493e526c8c861caf0313f065e133cc36 (diff)
always show the location selector button, just as on Desktop
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/fragments/EipFragment.java5
1 files changed, 0 insertions, 5 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 eae84439..95d52628 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
@@ -424,7 +424,6 @@ public class EipFragment extends Fragment implements Observer {
}
locationButton.setText(getString(R.string.finding_best_connection));
mainDescription.setText(R.string.eip_state_insecure);
- locationButton.setVisibility(VISIBLE);
locationButton.setLocationLoad(UNKNOWN);
locationButton.showBridgeIndicator(false);
} else if (eipStatus.isConnected()) {
@@ -433,7 +432,6 @@ public class EipFragment extends Fragment implements Observer {
locationButton.setLocationLoad(gatewaysManager.getLoadForLocation(VpnStatus.getLastConnectedVpnName()));
locationButton.setText(VpnStatus.getLastConnectedVpnName());
locationButton.showBridgeIndicator(VpnStatus.isUsingBridges());
- locationButton.setVisibility(VISIBLE);
colorBackground();
mainDescription.setText(R.string.eip_state_connected);
subDescription.setText(getPreferredCity(getContext()) == null ?
@@ -443,7 +441,6 @@ public class EipFragment extends Fragment implements Observer {
Log.d(TAG, "eip fragment eipStatus - isOpenVpnRunningWithoutNetwork");
setMainButtonEnabled(true);
mainButton.updateState(true, false, true);
- locationButton.setVisibility(VISIBLE);
locationButton.setText(VpnStatus.getCurrentlyConnectingVpnName());
locationButton.showBridgeIndicator(VpnStatus.isUsingBridges());
colorBackgroundALittle();
@@ -453,7 +450,6 @@ public class EipFragment extends Fragment implements Observer {
showConnectionTransitionLayout(true);
// showRetryToast(activity);
locationButton.setText(getString(R.string.finding_best_connection));
- locationButton.setVisibility(VISIBLE);
locationButton.setLocationLoad(UNKNOWN);
locationButton.showBridgeIndicator(false);
mainDescription.setText(R.string.eip_state_insecure);
@@ -478,7 +474,6 @@ public class EipFragment extends Fragment implements Observer {
greyscaleBackground();
locationButton.setLocationLoad(UNKNOWN);
locationButton.showBridgeIndicator(false);
- locationButton.setVisibility(INVISIBLE);
mainDescription.setText(R.string.eip_state_insecure);
subDescription.setText(R.string.connection_not_connected);
}