Skip to content

Commit e8e2435

Browse files
fix: change the server address to the backup one if the first address is unreachable
1 parent fd0fd05 commit e8e2435

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: app/src/main/java/com/cappielloantonio/tempo/ui/fragment/LoginFragment.java

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public void onServerClick(Bundle bundle) {
123123
systemRepository.checkUserCredential(new SystemCallback() {
124124
@Override
125125
public void onError(Exception exception) {
126+
Preferences.switchInUseServerAddress();
126127
resetServerPreference();
127128
Toast.makeText(requireContext(), exception.getMessage(), Toast.LENGTH_SHORT).show();
128129
}

0 commit comments

Comments
 (0)