Loading packages/SystemUI/src/com/android/systemui/statusbar/PulseExpansionHandler.kt +4 −1 Original line number Original line Diff line number Diff line Loading @@ -179,7 +179,10 @@ constructor( } } override fun onTouchEvent(event: MotionEvent): Boolean { override fun onTouchEvent(event: MotionEvent): Boolean { if (!canHandleMotionEvent()) { val finishExpanding = (event.action == MotionEvent.ACTION_CANCEL || event.action == MotionEvent.ACTION_UP) && isExpanding if (!canHandleMotionEvent() && !finishExpanding) { // We allow cancellations/finishing to still go through here to clean up the state return false return false } } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +7 −2 Original line number Original line Diff line number Diff line Loading @@ -3840,8 +3840,13 @@ public class NotificationPanelViewController extends PanelViewController { expand(true /* animate */); expand(true /* animate */); } } initDownStates(event); initDownStates(event); if (!mIsExpanding && !shouldQuickSettingsIntercept(mDownX, mDownY, 0) && mPulseExpansionHandler.onTouchEvent(event)) { // If pulse is expanding already, let's give it the touch. There are situations // where the panel starts expanding even though we're also pulsing boolean pulseShouldGetTouch = (!mIsExpanding && !shouldQuickSettingsIntercept(mDownX, mDownY, 0)) || mPulseExpansionHandler.isExpanding(); if (pulseShouldGetTouch && mPulseExpansionHandler.onTouchEvent(event)) { // We're expanding all the other ones shouldn't get this anymore // We're expanding all the other ones shouldn't get this anymore return true; return true; } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/PulseExpansionHandler.kt +4 −1 Original line number Original line Diff line number Diff line Loading @@ -179,7 +179,10 @@ constructor( } } override fun onTouchEvent(event: MotionEvent): Boolean { override fun onTouchEvent(event: MotionEvent): Boolean { if (!canHandleMotionEvent()) { val finishExpanding = (event.action == MotionEvent.ACTION_CANCEL || event.action == MotionEvent.ACTION_UP) && isExpanding if (!canHandleMotionEvent() && !finishExpanding) { // We allow cancellations/finishing to still go through here to clean up the state return false return false } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +7 −2 Original line number Original line Diff line number Diff line Loading @@ -3840,8 +3840,13 @@ public class NotificationPanelViewController extends PanelViewController { expand(true /* animate */); expand(true /* animate */); } } initDownStates(event); initDownStates(event); if (!mIsExpanding && !shouldQuickSettingsIntercept(mDownX, mDownY, 0) && mPulseExpansionHandler.onTouchEvent(event)) { // If pulse is expanding already, let's give it the touch. There are situations // where the panel starts expanding even though we're also pulsing boolean pulseShouldGetTouch = (!mIsExpanding && !shouldQuickSettingsIntercept(mDownX, mDownY, 0)) || mPulseExpansionHandler.isExpanding(); if (pulseShouldGetTouch && mPulseExpansionHandler.onTouchEvent(event)) { // We're expanding all the other ones shouldn't get this anymore // We're expanding all the other ones shouldn't get this anymore return true; return true; } } Loading