Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb67b521 authored by Matt Pietal's avatar Matt Pietal
Browse files

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
parent fa6cf176
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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"
+1 −1
Original line number Diff line number Diff line
@@ -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))
        }