From 336b7cf2be7baa2d064c2d04acbd855f63da899f Mon Sep 17 00:00:00 2001 From: cyBerta Date: Fri, 9 Dec 2022 03:07:04 +0100 Subject: show connecting state background when vpn is actually blocking for now --- .../java/se/leap/bitmaskclient/base/fragments/EipFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/src') 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 a5ccb81d..02feafd3 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 @@ -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); -- cgit v1.2.3