mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 09:33:33 +00:00
fix: change the server address to the backup one if the first address is unreachable
This commit is contained in:
parent
fd0fd0546c
commit
e8e24354ec
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue