summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-10-31 09:26:55 +0100
committercyBerta <cyberta@riseup.net>2019-10-31 09:26:55 +0100
commitb059fa9e82acc98e9e4783ffbe6b34cdc8a18915 (patch)
tree2a4891833d46e2fe59b099f5f61919a184c22c77 /app/src/main/java
parent7cb2f52e809a72201cfd3444166c500946de2e71 (diff)
show blocking state on EipFragment
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/EipFragment.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/EipFragment.java b/app/src/main/java/se/leap/bitmaskclient/EipFragment.java
index 6c8254d6..0485e907 100644
--- a/app/src/main/java/se/leap/bitmaskclient/EipFragment.java
+++ b/app/src/main/java/se/leap/bitmaskclient/EipFragment.java
@@ -147,7 +147,7 @@ public class EipFragment extends Fragment implements Observer {
- @Override
+ @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
openVpnConnection = new EipFragmentServiceConnection();
@@ -407,6 +407,14 @@ public class EipFragment extends Fragment implements Observer {
} else if (eipStatus.isDisconnecting()) {
setMainButtonEnabled(false);
showDisconnectingLayout(activity);
+ } else if (eipStatus.isBlocking()) {
+ setMainButtonEnabled(true);
+ vpnStateImage.setStateIcon(R.drawable.vpn_blocking);
+ vpnStateImage.stopProgress(false);
+ routedText.setText(getString(R.string.void_vpn_establish, getString(R.string.app_name)));
+ routedText.setVisibility(VISIBLE);
+ vpnRoute.setVisibility(GONE);
+ colorBackgroundALittle();
} else {
mainButton.setText(activity.getString(R.string.vpn_button_turn_on));
setMainButtonEnabled(true);