mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-30 06:12:07 +00: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() {
|
systemRepository.checkUserCredential(new SystemCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onError(Exception exception) {
|
public void onError(Exception exception) {
|
||||||
|
Preferences.switchInUseServerAddress();
|
||||||
resetServerPreference();
|
resetServerPreference();
|
||||||
Toast.makeText(requireContext(), exception.getMessage(), Toast.LENGTH_SHORT).show();
|
Toast.makeText(requireContext(), exception.getMessage(), Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user