mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2025-12-24 00:18:02 -05:00
fix: change the server address to the backup one if the first address is unreachable
This commit is contained in:
@@ -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