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

Commit fd427f3d authored by Joshua Mokut's avatar Joshua Mokut Committed by Android (Google) Code Review
Browse files

Merge "Restored hover states for notifications" into main

parents 0a3610f0 ea2bf549
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17,7 +17,9 @@

<selector xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
    <item android:state_pressed="true" android:color="?androidprv:attr/materialColorOnSurface" android:alpha="0.15" />
    <!-- Pressed state's alpha is set to 0.00 temporarily until this bug is resolved permanently
    b/313920497 Design intended alpha is 0.15-->
    <item android:state_pressed="true" android:color="?androidprv:attr/materialColorOnSurface" android:alpha="0.00" />
    <item android:state_hovered="true" android:color="?androidprv:attr/materialColorOnSurface" android:alpha="0.11" />
    <item android:color="@color/transparent" />
</selector>
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ public class NotificationBackgroundView extends View implements Dumpable {
                    new int[]{com.android.internal.R.attr.state_hovered},
                    new int[]{}},

                    new int[]{tintColor, tintColor, tintColor}
                    new int[]{tintColor, 0, tintColor}
            );
            mBackground.setTintMode(PorterDuff.Mode.SRC_ATOP);
            mBackground.setTintList(stateList);