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

Commit 50e3899a authored by Gus Prevas's avatar Gus Prevas
Browse files

Links right-to-left dismiss to feature flag.

This change re-enables dismissing a notification via a right-to-left
swipe unless the new interruption model flag is turned on.

Bug: 116622974
Change-Id: Id70692e5edb1bf36f758639c6d65a14feb2675ca
Fixes: 119482546
Test: manually
parent ab96fe0b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -5796,7 +5796,13 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd

        @Override
        public boolean canChildBeDismissedInDirection(View v, boolean isRightOrDown) {
            return (isLayoutRtl() ? !isRightOrDown : isRightOrDown) && canChildBeDismissed(v);
            boolean isValidDirection;
            if (NotificationUtils.useNewInterruptionModel(mContext)) {
                isValidDirection = isLayoutRtl() ? !isRightOrDown : isRightOrDown;
            } else {
                isValidDirection = true;
            }
            return isValidDirection && canChildBeDismissed(v);
        }
    };