From ea8b752e03724aad302bdf683b91847c35877d7c Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 9 Mar 2019 17:12:20 +0100 Subject: don't show toasts if app is reconnecting with different gateway in this release --- app/src/main/java/se/leap/bitmaskclient/EipFragment.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/se/leap/bitmaskclient/EipFragment.java b/app/src/main/java/se/leap/bitmaskclient/EipFragment.java index 2af455f8..d54d01af 100644 --- a/app/src/main/java/se/leap/bitmaskclient/EipFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/EipFragment.java @@ -366,15 +366,14 @@ public class EipFragment extends Fragment implements Observer { return; } - Log.d(TAG, "eip fragment eipStatus state: " + eipStatus.getState() + " - level: " + eipStatus.getLevel() + " - is reconnecting: " + eipStatus.isReconnecting()); + //Log.d(TAG, "eip fragment eipStatus state: " + eipStatus.getState() + " - level: " + eipStatus.getLevel() + " - is reconnecting: " + eipStatus.isReconnecting()); if (eipStatus.isConnecting() ) { showConnectingLayout(activity); - Log.d(TAG, "eip show connecting layout"); if (eipStatus.isReconnecting()) { - Log.d(TAG, "eip show reconnecting toast!"); - showReconnectToast(activity); + //Log.d(TAG, "eip show reconnecting toast!"); + //showReconnectToast(activity); } } else if (eipStatus.isConnected() ) { mainButton.setText(activity.getString(R.string.vpn_button_turn_off)); @@ -396,7 +395,7 @@ public class EipFragment extends Fragment implements Observer { colorBackgroundALittle(); } else if (eipStatus.isDisconnected() && reconnectingWithDifferentGateway()) { showConnectingLayout(activity); - showRetryToast(activity); + // showRetryToast(activity); } else { mainButton.setText(activity.getString(R.string.vpn_button_turn_on)); -- cgit v1.2.3