• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

external/koush/Superuser


Commit MetaInfo

Revisiónc61bc3153cab3b043f8661b522c807ef0f48bd40 (tree)
Tiempo2019-12-26 16:01:24
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Fix pin dialog crashing

I don't know the root cause and how to fix it properly.
Just work around it.

Cambiar Resumen

Diferencia incremental

--- a/Superuser/res/layout/pin.xml
+++ b/Superuser/res/layout/pin.xml
@@ -108,11 +108,11 @@
108108 <LinearLayout
109109 android:layout_width="match_parent"
110110 android:layout_height="wrap_content"
111- android:background="?attr/bottomButtonBar" >
111+ android:background="@color/background_material_dark" >
112112
113113 <Button
114114 android:id="@+id/cancel"
115- style="@style/BottomButton"
115+ style="@style/PinBottomButton"
116116 android:layout_width="0dp"
117117 android:layout_height="wrap_content"
118118 android:layout_weight="1"
@@ -133,7 +133,7 @@
133133
134134 <Button
135135 android:id="@+id/ok"
136- style="@style/BottomButton"
136+ style="@style/PinBottomButton"
137137 android:layout_width="0dp"
138138 android:layout_height="wrap_content"
139139 android:layout_weight="1"
--- a/Superuser/res/values-v16/styles.xml
+++ b/Superuser/res/values-v16/styles.xml
@@ -12,4 +12,9 @@
1212 <style name="RobotoButtonStyle" parent="android:Widget.Holo.Button">
1313 <item name="android:fontFamily">sans-serif-light</item>
1414 </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>
1520 </resources>