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

Commit 77a90e4e authored by android-build-team Robot's avatar android-build-team Robot Committed by android-build-merger
Browse files

Merge "Fixed an issue when pulling down from heads up" into pi-dev

am: fd3b398e

Change-Id: I16eecaa0b5fd6b5bf95eeb82b22d623b0d8e4be9
parents ebebf100 fd3b398e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.view.ViewConfiguration;
import com.android.systemui.Gefingerpoken;
import com.android.systemui.statusbar.ExpandableNotificationRow;
import com.android.systemui.statusbar.ExpandableView;
import com.android.systemui.statusbar.NotificationData;
import com.android.systemui.statusbar.stack.NotificationStackScrollLayout;

/**
@@ -80,6 +81,14 @@ public class HeadsUpTouchHelper implements Gefingerpoken {
                    mPickedChild = (ExpandableNotificationRow) child;
                    mTouchingHeadsUpView = !mStackScroller.isExpanded()
                            && mPickedChild.isHeadsUp() && mPickedChild.isPinned();
                } else if (child == null && !mStackScroller.isExpanded()) {
                    // We might touch above the visible heads up child, but then we still would
                    // like to capture it.
                    NotificationData.Entry topEntry = mHeadsUpManager.getTopEntry();
                    if (topEntry != null && topEntry.row.isPinned()) {
                        mPickedChild = topEntry.row;
                        mTouchingHeadsUpView = true;
                    }
                }
                break;
            case MotionEvent.ACTION_POINTER_UP: