Merge "Controls UI - Fix dropdown layer list" into rvc-dev

This commit is contained in:
Matt Pietal
2020-05-21 15:40:59 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 6 deletions

View File

@@ -20,11 +20,6 @@
android:paddingEnd="40dp"
android:paddingLeft="0dp"
android:paddingRight="0dp">
<item
android:gravity="end|fill_vertical"
android:width="40dp"
android:drawable="@*android:drawable/control_background_40dp_material" />
<item
android:drawable="@drawable/ic_ksh_key_down"
android:gravity="end|bottom"

View File

@@ -368,7 +368,7 @@ class ControlsUiControllerImpl @Inject constructor (
val spinner = parent.requireViewById<TextView>(R.id.app_or_structure_spinner).apply {
setText(selectionItem.getTitle())
// override the default color on the dropdown drawable
(getBackground() as LayerDrawable).getDrawable(1)
(getBackground() as LayerDrawable).getDrawable(0)
.setTint(context.resources.getColor(R.color.control_spinner_dropdown, null))
}