[SettingsLib] Update Utils APIs usage
Update Utils.getColorAttr and similar methods in Utils to return a ColorStateList instead of a color Bug: 74872054 Test: Force to display different color items then manually test Change-Id: If002f9a578558e6254220c36ef556e8378d4522a
This commit is contained in:
@@ -307,7 +307,8 @@ public class EntityHeaderController {
|
||||
return this;
|
||||
}
|
||||
actionBar.setBackgroundDrawable(
|
||||
new ColorDrawable(Utils.getColorAttr(activity, android.R.attr.colorPrimary)));
|
||||
new ColorDrawable(
|
||||
Utils.getColorAttrDefaultColor(activity, android.R.attr.colorPrimary)));
|
||||
actionBar.setElevation(0);
|
||||
if (mRecyclerView != null && mLifecycle != null) {
|
||||
ActionBarShadowController.attachToRecyclerView(mActivity, mLifecycle, mRecyclerView);
|
||||
|
Reference in New Issue
Block a user