diff options
author | cyBerta <cyberta@riseup.net> | 2019-10-31 09:26:55 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-10-31 09:26:55 +0100 |
commit | b059fa9e82acc98e9e4783ffbe6b34cdc8a18915 (patch) | |
tree | 2a4891833d46e2fe59b099f5f61919a184c22c77 /app/src/main/java | |
parent | 7cb2f52e809a72201cfd3444166c500946de2e71 (diff) |
show blocking state on EipFragment
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/EipFragment.java | 10 |
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); |