mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2024-12-16 15:48:13 +08:00
radio buttons style to match the theme. error toast on failure
This commit is contained in:
parent
c4b0b596d3
commit
7e3eef90d2
@ -507,6 +507,9 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
|
|||||||
@Override
|
@Override
|
||||||
public void onFailure(@NonNull Call<UserInfo> call, @NonNull Throwable t) {
|
public void onFailure(@NonNull Call<UserInfo> call, @NonNull Throwable t) {
|
||||||
Log.e("onFailure", t.toString());
|
Log.e("onFailure", t.toString());
|
||||||
|
Toasty.info(getApplicationContext(), getResources().getString(R.string.genericError));
|
||||||
|
enableProcessButton();
|
||||||
|
loginButton.setText(R.string.btnLogin);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -47,12 +47,14 @@
|
|||||||
android:text="@string/loginViaPassword"
|
android:text="@string/loginViaPassword"
|
||||||
android:checked="true"
|
android:checked="true"
|
||||||
android:layout_marginEnd="30dp"
|
android:layout_marginEnd="30dp"
|
||||||
|
android:theme="@style/radioButtonsInDarkTheme"
|
||||||
android:textColor="@color/white"/>
|
android:textColor="@color/white"/>
|
||||||
<RadioButton
|
<RadioButton
|
||||||
android:id="@+id/loginToken"
|
android:id="@+id/loginToken"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/copyToken"
|
android:text="@string/copyToken"
|
||||||
|
android:theme="@style/radioButtonsInDarkTheme"
|
||||||
android:textColor="@color/white"/>
|
android:textColor="@color/white"/>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
|
|
||||||
|
@ -56,4 +56,9 @@
|
|||||||
<item name="android:layout_marginBottom">10dp</item>
|
<item name="android:layout_marginBottom">10dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="radioButtonsInDarkTheme" parent="Theme.AppCompat.Dialog.Alert">
|
||||||
|
<item name="colorControlNormal">@color/white</item>
|
||||||
|
<item name="colorControlActivated">@color/white</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user