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

Commit 03323799 authored by Gus Prevas's avatar Gus Prevas
Browse files

Fixes notification menu fade-in on swipe.

This change modifies NotificationMenuRow to fade in the menu when it
receives the onSnapOpen() callback if it hasn't start fading it in yet.
This can occur on a fast enough swipe on a non-dismissable notification,
or a fast leftward swipe on any notification with the new interruption
model enabled.

Change-Id: I4cfd01c436498d7b55e1f1f5a5584c577a699921
Fixes: 119824829
Test: manually
parent d0f47278
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -367,6 +367,9 @@ public class NotificationMenuRow implements NotificationMenuRowPlugin, View.OnCl
    public void onSnapOpen() {
    public void onSnapOpen() {
        mMenuSnapped = true;
        mMenuSnapped = true;
        mMenuSnappedOnLeft = isMenuOnLeft();
        mMenuSnappedOnLeft = isMenuOnLeft();
        if (mAlpha == 0f && mParent != null) {
            fadeInMenu(mParent.getWidth());
        }
        if (mMenuListener != null) {
        if (mMenuListener != null) {
            mMenuListener.onMenuShown(getParent());
            mMenuListener.onMenuShown(getParent());
        }
        }