fix: change the server address to the backup one if the first address is unreachable

This commit is contained in:
CappielloAntonio
2024-11-06 17:43:18 +01:00
parent fd0fd0546c
commit e8e24354ec

View File

@@ -123,6 +123,7 @@ public class LoginFragment extends Fragment implements ClickCallback {
systemRepository.checkUserCredential(new SystemCallback() {
@Override
public void onError(Exception exception) {
Preferences.switchInUseServerAddress();
resetServerPreference();
Toast.makeText(requireContext(), exception.getMessage(), Toast.LENGTH_SHORT).show();
}