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 8205f9e9..c52a10cd 100644 --- a/app/src/main/java/org/mian/gitnex/activities/LoginActivity.java +++ b/app/src/main/java/org/mian/gitnex/activities/LoginActivity.java @@ -507,6 +507,9 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList @Override public void onFailure(@NonNull Call call, @NonNull Throwable t) { Log.e("onFailure", t.toString()); + Toasty.info(getApplicationContext(), getResources().getString(R.string.genericError)); + enableProcessButton(); + loginButton.setText(R.string.btnLogin); } }); diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml index a46c62d7..13b2273c 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -47,12 +47,14 @@ android:text="@string/loginViaPassword" android:checked="true" android:layout_marginEnd="30dp" + android:theme="@style/radioButtonsInDarkTheme" android:textColor="@color/white"/> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index d51b994a..b10838a0 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -56,4 +56,9 @@ 10dp + +