diff --git a/app/src/main/java/org/mian/gitnex/activities/LoginActivity.java b/app/src/main/java/org/mian/gitnex/activities/LoginActivity.java index 4fdf828a..47cd4f0d 100644 --- a/app/src/main/java/org/mian/gitnex/activities/LoginActivity.java +++ b/app/src/main/java/org/mian/gitnex/activities/LoginActivity.java @@ -511,6 +511,9 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener public void onFailure(@NonNull Call callVersion, Throwable t) { Log.e("onFailure-version", t.toString()); + SnackBar.error(getApplicationContext(), layoutView, getResources().getString(R.string.errorOnLogin)); + enableProcessButton(); + loginButton.setText(R.string.btnLogin); } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index abc87fb4..8d664591 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -618,6 +618,8 @@ Open Closed + We cannot reach the server, please check your server status + Crash Reports Enable Crash Reports GitNex has stopped :(