external/koush/Superuser
Revisión | c61bc3153cab3b043f8661b522c807ef0f48bd40 (tree) |
---|---|
Tiempo | 2019-12-26 16:01:24 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Fix pin dialog crashing
I don't know the root cause and how to fix it properly.
Just work around it.
@@ -108,11 +108,11 @@ | ||
108 | 108 | <LinearLayout |
109 | 109 | android:layout_width="match_parent" |
110 | 110 | android:layout_height="wrap_content" |
111 | - android:background="?attr/bottomButtonBar" > | |
111 | + android:background="@color/background_material_dark" > | |
112 | 112 | |
113 | 113 | <Button |
114 | 114 | android:id="@+id/cancel" |
115 | - style="@style/BottomButton" | |
115 | + style="@style/PinBottomButton" | |
116 | 116 | android:layout_width="0dp" |
117 | 117 | android:layout_height="wrap_content" |
118 | 118 | android:layout_weight="1" |
@@ -133,7 +133,7 @@ | ||
133 | 133 | |
134 | 134 | <Button |
135 | 135 | android:id="@+id/ok" |
136 | - style="@style/BottomButton" | |
136 | + style="@style/PinBottomButton" | |
137 | 137 | android:layout_width="0dp" |
138 | 138 | android:layout_height="wrap_content" |
139 | 139 | android:layout_weight="1" |
@@ -12,4 +12,9 @@ | ||
12 | 12 | <style name="RobotoButtonStyle" parent="android:Widget.Holo.Button"> |
13 | 13 | <item name="android:fontFamily">sans-serif-light</item> |
14 | 14 | </style> |
15 | + | |
16 | + <style name="PinBottomButton" parent="BottomButton"> | |
17 | + <item name="android:background">?android:attr/selectableItemBackground</item> | |
18 | + <item name="android:textColor">@android:color/white</item> | |
19 | + </style> | |
15 | 20 | </resources> |