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

Commit 078fb920 authored by Beverly Tai's avatar Beverly Tai Committed by Android (Google) Code Review
Browse files

Merge "Allow resetTranslation on notification menu open" into rvc-dev

parents a0f44693 64bacdd5
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -1680,7 +1680,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
    public void reset() {
        mShowingPublicInitialized = false;
        unDismiss();
        if (mMenuRow == null || !mMenuRow.isMenuVisible()) {
            resetTranslation();
        }
        onHeightReset();
        requestLayout();
    }
@@ -1838,10 +1840,6 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
    }

    public void resetTranslation() {
        if (mMenuRow != null && mMenuRow.isMenuVisible()) {
            return;
        }

        if (mTranslateAnim != null) {
            mTranslateAnim.cancel();
        }