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

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

Merge "Only help with HUNing notifications"

parents a0d36c6f ad35f883
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -77,9 +77,12 @@ public class HeadsUpTouchHelper implements Gefingerpoken {
                ExpandableView child = mCallback.getChildAtRawPosition(x, y);
                mTouchingHeadsUpView = false;
                if (child instanceof ExpandableNotificationRow) {
                    mPickedChild = (ExpandableNotificationRow) child;
                    ExpandableNotificationRow pickedChild = (ExpandableNotificationRow) child;
                    mTouchingHeadsUpView = !mCallback.isExpanded()
                            && mPickedChild.isHeadsUp() && mPickedChild.isPinned();
                            && pickedChild.isHeadsUp() && pickedChild.isPinned();
                    if (mTouchingHeadsUpView) {
                        mPickedChild = pickedChild;
                    }
                } else if (child == null && !mCallback.isExpanded()) {
                    // We might touch above the visible heads up child, but then we still would
                    // like to capture it.