Bouncer: Change color of emergency button text
Change color of the text of thee mergency button to 'textColorOnAccent'. Bug: 223224098 Test: Manual on device Change-Id: I43e879473cfe75f87a85252c6730fcc0589b1897
This commit is contained in:
@@ -17,13 +17,14 @@
|
||||
*/
|
||||
-->
|
||||
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
|
||||
<!-- Keyguard PIN pad styles -->
|
||||
<style name="Keyguard.TextView" parent="@android:style/Widget.DeviceDefault.TextView">
|
||||
<item name="android:textSize">@dimen/kg_status_line_font_size</item>
|
||||
</style>
|
||||
<style name="Keyguard.TextView.EmergencyButton" parent="Theme.SystemUI">
|
||||
<item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
|
||||
<item name="android:textColor">?androidprv:attr/textColorOnAccent</item>
|
||||
<item name="android:textSize">14dp</item>
|
||||
<item name="android:background">@drawable/kg_emergency_button_background</item>
|
||||
<item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||
|
||||
@@ -96,7 +96,7 @@ public class EmergencyButton extends Button {
|
||||
**/
|
||||
public void reloadColors() {
|
||||
int color = Utils.getColorAttrDefaultColor(getContext(),
|
||||
android.R.attr.textColorPrimaryInverse);
|
||||
com.android.internal.R.attr.textColorOnAccent);
|
||||
setTextColor(color);
|
||||
setBackground(getContext()
|
||||
.getDrawable(com.android.systemui.R.drawable.kg_emergency_button_background));
|
||||
|
||||
Reference in New Issue
Block a user