From b569e5e4c16776e1e0e563567b6df473c78869ef Mon Sep 17 00:00:00 2001 From: X1nto Date: Wed, 29 Jul 2020 14:14:50 +0400 Subject: [PATCH 1/2] fixed switchbar color --- .../src/main/res/layout/preference_switch_bar.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-services-core/src/main/res/layout/preference_switch_bar.xml b/play-services-core/src/main/res/layout/preference_switch_bar.xml index d14e81d9..8a0134b2 100755 --- a/play-services-core/src/main/res/layout/preference_switch_bar.xml +++ b/play-services-core/src/main/res/layout/preference_switch_bar.xml @@ -39,7 +39,7 @@ android:paddingLeft="?attr/listPreferredItemPaddingLeft" android:paddingEnd="?attr/listPreferredItemPaddingEnd" android:paddingRight="?attr/listPreferredItemPaddingRight" - android:background="@{checked ? android.R.attr.colorControlActivated : (enabled ? android.R.attr.colorButtonNormal : android.R.attr.colorControlHighlight)}" + android:background="#ff37474f" tools:background="?attr/colorControlActivated"> Date: Wed, 29 Jul 2020 14:48:31 +0400 Subject: [PATCH 2/2] fixed color of whole switch layout --- .../src/main/res/layout/preference_switch_bar.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/play-services-core/src/main/res/layout/preference_switch_bar.xml b/play-services-core/src/main/res/layout/preference_switch_bar.xml index 8a0134b2..e944b4d9 100755 --- a/play-services-core/src/main/res/layout/preference_switch_bar.xml +++ b/play-services-core/src/main/res/layout/preference_switch_bar.xml @@ -39,7 +39,7 @@ android:paddingLeft="?attr/listPreferredItemPaddingLeft" android:paddingEnd="?attr/listPreferredItemPaddingEnd" android:paddingRight="?attr/listPreferredItemPaddingRight" - android:background="#ff37474f" + android:background="?attr/colorAccent" tools:background="?attr/colorControlActivated">