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

Commit f153f5fc authored by Mady Mellor's avatar Mady Mellor
Browse files

Fix settings icon row consuming the click when tapping the notification

This CL makes the settings icon row invisible when it's not displaying,
this way it won't get the click event on the notification row before
the parent.

Bug: 27389571
parent fbb584df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
    xmlns:systemui="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:visibility="invisible"
    >

    <com.android.systemui.statusbar.AlphaOptimizedImageView
@@ -31,7 +32,6 @@
        android:paddingBottom="@dimen/notification_gear_padding"
        android:src="@drawable/ic_settings"
        android:tint="@color/notification_gear_color"
        android:visibility="invisible"
        android:alpha="0"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        />
+2 −2
Original line number Diff line number Diff line
@@ -95,12 +95,12 @@ public class NotificationSettingsIconRow extends FrameLayout implements View.OnC
    private void setGearAlpha(float alpha) {
        if (alpha == 0) {
            mSettingsFadedIn = false; // Can fade in again once it's gone.
            mGearIcon.setVisibility(View.INVISIBLE);
            setVisibility(View.INVISIBLE);
        } else {
            if (alpha == 1) {
                mSettingsFadedIn = true;
            }
            mGearIcon.setVisibility(View.VISIBLE);
            setVisibility(View.VISIBLE);
        }
        mGearIcon.setAlpha(alpha);
    }