mirror of
https://codeberg.org/gitnex/GitNex
synced 2024-12-23 08:58:12 +01:00
Adding ability to login again when version check failes. (#417)
add own error message for this Merge branch 'master' into login-fix Merge branch 'master' into login-fix Merge branch 'master' into login-fix Adding ability to login again when version check failes. Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: 6543 <6543@noreply.gitea.io> Co-authored-by: opyale <example@example.com> Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/417 Reviewed-by: M M Arif <mmarif@swatian.com>
This commit is contained in:
parent
aa85b99e84
commit
03a9cd1bba
@ -511,6 +511,9 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
||||
public void onFailure(@NonNull Call<GiteaVersion> callVersion, Throwable t) {
|
||||
|
||||
Log.e("onFailure-version", t.toString());
|
||||
SnackBar.error(getApplicationContext(), layoutView, getResources().getString(R.string.errorOnLogin));
|
||||
enableProcessButton();
|
||||
loginButton.setText(R.string.btnLogin);
|
||||
|
||||
}
|
||||
|
||||
|
@ -618,6 +618,8 @@
|
||||
<string name="tabIssueOpen">Open</string>
|
||||
<string name="tabIssueClosed">Closed</string>
|
||||
|
||||
<string name="errorOnLogin">We cannot reach the server, please check your server status</string>
|
||||
|
||||
<string name="reportViewerHeader">Crash Reports</string>
|
||||
<string name="settingsEnableReportsText">Enable Crash Reports</string>
|
||||
<string name="crashTitle">GitNex has stopped :(</string>
|
||||
|
Loading…
Reference in New Issue
Block a user