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

Commit 07ac7fbc authored by Alan Viverette's avatar Alan Viverette
Browse files

Add focused & disabled states for spinner assets

Regression from KK. Bad copy/paste from another asset. Checked should
have been changed to focused.

BUG: 18669124
Change-Id: I0b86c0437cbe14b46b6a0b7047656ec15bf2d758
parent 2ea3650d
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -16,16 +16,17 @@

<selector xmlns:android="http://schemas.android.com/apk/res/android"
    android:autoMirrored="true">
    <item android:state_checked="true">
    <item android:state_enabled="false">
        <nine-patch android:src="@drawable/spinner_mtrl_am_alpha"
            android:tint="?attr/colorControlActivated" />
            android:tint="?attr/colorControlNormal"
            android:alpha="?attr/disabledAlpha" />
    </item>
    <item android:state_pressed="true">
    <item android:state_pressed="false" android:state_focused="false">
        <nine-patch android:src="@drawable/spinner_mtrl_am_alpha"
            android:tint="?attr/colorControlActivated" />
            android:tint="?attr/colorControlNormal" />
    </item>
    <item>
        <nine-patch android:src="@drawable/spinner_mtrl_am_alpha"
            android:tint="?attr/colorControlNormal" />
            android:tint="?attr/colorControlActivated" />
    </item>
</selector>
+15 −1
Original line number Diff line number Diff line
@@ -17,7 +17,21 @@
<inset xmlns:android="http://schemas.android.com/apk/res/android"
       android:inset="@dimen/control_inset_material">
    <selector android:autoMirrored="true">
        <item android:state_checked="false" android:state_pressed="false">
        <item android:state_enabled="false">
            <layer-list android:paddingMode="stack">
                <item>
                    <nine-patch android:src="@drawable/textfield_activated_mtrl_alpha"
                        android:tint="?attr/colorControlActivated"
                        android:alpha="?attr/disabledAlpha" />
                </item>
                <item>
                    <nine-patch android:src="@drawable/spinner_mtrl_am_alpha"
                        android:tint="?attr/colorControlActivated"
                        android:alpha="?attr/disabledAlpha" />
                </item>
            </layer-list>
        </item>
        <item android:state_pressed="false" android:state_focused="false">
            <layer-list android:paddingMode="stack">
                <item>
                    <nine-patch android:src="@drawable/textfield_default_mtrl_alpha"