From 5446b5f9bccfb9200b8a6d7baa7f88b0aedeb3be Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Mon, 18 May 2015 11:30:49 -0700 Subject: [PATCH] Remove controlBackground attribute, replace with direct reference Trending on the side of fewer theme attributes. It's possible (though somewhat painful) to set the control background without adding another theme attribute, so leave it out. Replace with direct reference to the themed drawable. Bug: 21118581 Change-Id: Ica72b452495090d682842f81ca117731c3b2d874 --- core/res/res/values/attrs.xml | 3 --- core/res/res/values/styles_material.xml | 16 ++++++++-------- core/res/res/values/themes_material.xml | 4 ---- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 0d7d868dc11af..21c4a8db99fc1 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -1035,9 +1035,6 @@ - - - diff --git a/core/res/res/values/styles_material.xml b/core/res/res/values/styles_material.xml index c2371ee53367a..165d1f8aa2173 100644 --- a/core/res/res/values/styles_material.xml +++ b/core/res/res/values/styles_material.xml @@ -572,16 +572,16 @@ please see styles_device_defaults.xml. @@ -727,7 +727,7 @@ please see styles_device_defaults.xml. 16dip 16dip true - ?attr/controlBackground + @drawable/control_background_material @@ -740,8 +738,6 @@ please see themes_device_defaults.xml. @color/ripple_material_light @color/btn_default_material_light @color/switch_thumb_material_light - - @drawable/control_background_material