Fix no-theme bug in Onboarding by using Radiobuttons
It was possible to de-select all Themes in the Onboarding as Checkboxes where used. Now this is not possible anymore because we use Radiobuttons
This commit is contained in:
@@ -67,11 +67,11 @@ class ThemeView : RelativeLayout {
|
|||||||
|
|
||||||
@ModelProp
|
@ModelProp
|
||||||
fun markChecked(isChecked: Boolean) {
|
fun markChecked(isChecked: Boolean) {
|
||||||
B.checkbox.isChecked = isChecked
|
B.radiobutton.isChecked = isChecked
|
||||||
}
|
}
|
||||||
|
|
||||||
@CallbackProp
|
@CallbackProp
|
||||||
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
||||||
B.checkbox.setOnCheckedChangeListener(onCheckedChangeListener)
|
B.radiobutton.setOnCheckedChangeListener(onCheckedChangeListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -40,8 +40,8 @@
|
|||||||
android:layout_alignEnd="@id/line1"
|
android:layout_alignEnd="@id/line1"
|
||||||
android:layout_marginTop="@dimen/margin_xxsmall" />
|
android:layout_marginTop="@dimen/margin_xxsmall" />
|
||||||
|
|
||||||
<com.google.android.material.checkbox.MaterialCheckBox
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||||
android:id="@+id/checkbox"
|
android:id="@+id/radiobutton"
|
||||||
android:layout_width="@dimen/icon_size_category"
|
android:layout_width="@dimen/icon_size_category"
|
||||||
android:layout_height="@dimen/icon_size_category"
|
android:layout_height="@dimen/icon_size_category"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user