fix: change the server address to the backup one if the first address is unreachable
This commit is contained in:
1 parent
fd0fd0546c
commit
e8e24354ec
1 file changed
+1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user