Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

Commit 4085772

Browse files
committed
Use AppCompat checkbox rather than custom checkbox..
Possible crash fix on certain devices when configuring widget
1 parent 3b1152f commit 4085772

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

app/src/main/res/layout/activity_widget_config.xml

+14-8
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,26 @@
5252
android:layout_height="wrap_content"
5353
android:orientation="horizontal">
5454

55-
<com.simplecity.amp_library.ui.views.CustomCheckbox
55+
<android.support.v7.widget.AppCompatCheckBox
5656
android:id="@+id/checkBox1"
5757
android:layout_width="0dp"
5858
android:layout_height="48dp"
5959
android:layout_weight="1"
60+
android:tag=":aesthetic_ignore"
6061
android:checked="true"
61-
android:gravity="center_vertical"
6262
android:text="@string/widget_show_artwork"
63-
android:textColorHighlight="#6680cbc4"/>
63+
android:gravity="center_vertical"
64+
android:textColor="@color/black"/>
6465

65-
<com.simplecity.amp_library.ui.views.CustomCheckbox
66+
<android.support.v7.widget.AppCompatCheckBox
6667
android:id="@+id/checkBox2"
68+
android:tag=":aesthetic_ignore"
6769
android:layout_width="0dp"
6870
android:layout_height="48dp"
71+
android:text="@string/widget_invert_icons"
6972
android:layout_weight="1"
7073
android:gravity="center_vertical"
71-
android:text="@string/widget_invert_icons"
72-
android:textColorHighlight="#6680cbc4"/>
74+
android:textColor="@color/black"/>
7375

7476
</LinearLayout>
7577

@@ -83,8 +85,10 @@
8385
android:layout_width="0dp"
8486
android:layout_height="48dp"
8587
android:layout_weight="1"
86-
android:drawableLeft="@drawable/bg_rounded"
88+
android:drawablePadding="8dp"
89+
android:drawableStart="@drawable/bg_rounded"
8790
android:padding="8dp"
91+
android:gravity="center_vertical|start"
8892
android:stateListAnimator="@null"
8993
android:tag=":aesthetic_ignore"
9094
android:text="@string/widget_background_color"
@@ -94,9 +98,11 @@
9498
android:id="@+id/btn_text_color"
9599
android:layout_width="0dp"
96100
android:layout_height="48dp"
101+
android:drawablePadding="8dp"
97102
android:layout_weight="1"
98-
android:drawableLeft="@drawable/bg_rounded"
103+
android:drawableStart="@drawable/bg_rounded"
99104
android:padding="8dp"
105+
android:gravity="center_vertical|start"
100106
android:stateListAnimator="@null"
101107
android:tag=":aesthetic_ignore"
102108
android:text="@string/widget_text_color"

0 commit comments

Comments
 (0)