Commit ea8b752e authored by cyberta's avatar cyberta

don't show toasts if app is reconnecting with different gateway in this release

parent b6b538ae
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment