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

Commit 10113a7c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Links right-to-left dismiss to feature flag."

parents f866003a 50e3899a
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -5786,7 +5786,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);
        }
    };