summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Matt Pietal <mpietal@google.com> 2020-05-21 09:53:26 -0400
committer Matt Pietal <mpietal@google.com> 2020-05-21 09:53:26 -0400
commitfb67b52119787195cf7b1775c9069e64dede6053 (patch)
tree8724177c917b86ff66933601dbb639eb42cab000
parentfa6cf17648582959be9e1311244f88a3168be72c (diff)
Controls UI - Fix dropdown layer list
Remove bottom layer, not needed in this case. This will prevent the icon from hovering over the window and not obeying animations. Fixes: 156662716 Fixes: 156924481 Test: manual. show/hide power menu, and scroll it up Change-Id: If7c66e68ad582143d2ecd29e0c5938070996a9f9
-rw-r--r--packages/SystemUI/res/drawable/control_spinner_background.xml5
-rw-r--r--packages/SystemUI/src/com/android/systemui/controls/ui/ControlsUiControllerImpl.kt2
2 files changed, 1 insertions, 6 deletions
diff --git a/packages/SystemUI/res/drawable/control_spinner_background.xml b/packages/SystemUI/res/drawable/control_spinner_background.xml
index 7a8728d2983c..46a9dad29fec 100644
--- a/packages/SystemUI/res/drawable/control_spinner_background.xml
+++ b/packages/SystemUI/res/drawable/control_spinner_background.xml
@@ -21,11 +21,6 @@
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"
android:paddingBottom="6dp"
diff --git a/packages/SystemUI/src/com/android/systemui/controls/ui/ControlsUiControllerImpl.kt b/packages/SystemUI/src/com/android/systemui/controls/ui/ControlsUiControllerImpl.kt
index 3aa417ab904b..7662eb58b104 100644
--- a/packages/SystemUI/src/com/android/systemui/controls/ui/ControlsUiControllerImpl.kt
+++ b/packages/SystemUI/src/com/android/systemui/controls/ui/ControlsUiControllerImpl.kt
@@ -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))
}