diff --git a/app/src/main/java/com/cappielloantonio/tempo/ui/fragment/LoginFragment.java b/app/src/main/java/com/cappielloantonio/tempo/ui/fragment/LoginFragment.java index c73a2bbf..d5bb0fae 100644 --- a/app/src/main/java/com/cappielloantonio/tempo/ui/fragment/LoginFragment.java +++ b/app/src/main/java/com/cappielloantonio/tempo/ui/fragment/LoginFragment.java @@ -123,6 +123,7 @@ public void onServerClick(Bundle bundle) { systemRepository.checkUserCredential(new SystemCallback() { @Override public void onError(Exception exception) { + Preferences.switchInUseServerAddress(); resetServerPreference(); Toast.makeText(requireContext(), exception.getMessage(), Toast.LENGTH_SHORT).show(); }