Skip to content
Snippets Groups Projects
Commit 336b7cf2 authored by cyberta's avatar cyberta
Browse files

show connecting state background when vpn is actually blocking for now

parent 26b786b1
Branches fix_blocking_state
No related tags found
No related merge requests found
......@@ -547,16 +547,16 @@ public class EipFragment extends Fragment implements Observer {
setActivityBarColor(R.color.bg_disconnected_top, R.color.bg_disconnected_top_light_transparent);
} else if (eipStatus.isBlocking()) {
setMainButtonEnabled(true);
mainButton.updateState(true, false, true);
mainButton.updateState(false, true, true);
locationButton.setText(R.string.no_location);
locationButton.setLocationLoad(UNKNOWN);
locationButton.showBridgeIndicator(false);
locationButton.showRecommendedIndicator(false);
mainDescription.setText(R.string.eip_state_connected);
subDescription.setText(getString(R.string.eip_state_blocking, getString(R.string.app_name)));
background.setImageResource(R.drawable.bg_disconnected);
animateState(R.drawable.state_disconnected);
setActivityBarColor(R.color.bg_disconnected_top, R.color.bg_disconnected_top_light_transparent);
background.setImageResource(R.drawable.bg_connecting);
animateState(R.drawable.state_connecting);
setActivityBarColor(R.color.bg_connecting_top, R.color.bg_connecting_top_light_transparent);
} else {
locationButton.setText(R.string.vpn_button_turn_on);
setMainButtonEnabled(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment