Loading packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowViewController.java +3 −0 Original line number Diff line number Diff line Loading @@ -659,6 +659,9 @@ public class NotificationShadeWindowViewController implements Dumpable { mTouchCancelled = true; } mAmbientState.setSwipingUp(false); if (MigrateClocksToBlueprint.isEnabled()) { mDragDownHelper.stopDragging(); } } @Override Loading packages/SystemUI/src/com/android/systemui/statusbar/LockscreenShadeTransitionController.kt +1 −1 Original line number Diff line number Diff line Loading @@ -959,7 +959,7 @@ class DragDownHelper( anim.start() } private fun stopDragging() { fun stopDragging() { if (startingChild != null) { cancelChildExpansion(startingChild!!) startingChild = null Loading packages/SystemUI/tests/src/com/android/systemui/shade/NotificationShadeWindowViewControllerTest.kt +8 −0 Original line number Diff line number Diff line Loading @@ -578,6 +578,14 @@ class NotificationShadeWindowViewControllerTest : SysuiTestCase() { assertEquals(keyEvent, falsingCollector.lastKeyEvent) } @Test fun cancelCurrentTouch_callsDragDownHelper() { mSetFlagsRule.enableFlags(Flags.FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT) underTest.cancelCurrentTouch() verify(dragDownHelper).stopDragging() } companion object { private val DOWN_EVENT = MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_DOWN, 0f, 0f, 0) private val MOVE_EVENT = MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_MOVE, 0f, 0f, 0) Loading Loading
packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowViewController.java +3 −0 Original line number Diff line number Diff line Loading @@ -659,6 +659,9 @@ public class NotificationShadeWindowViewController implements Dumpable { mTouchCancelled = true; } mAmbientState.setSwipingUp(false); if (MigrateClocksToBlueprint.isEnabled()) { mDragDownHelper.stopDragging(); } } @Override Loading
packages/SystemUI/src/com/android/systemui/statusbar/LockscreenShadeTransitionController.kt +1 −1 Original line number Diff line number Diff line Loading @@ -959,7 +959,7 @@ class DragDownHelper( anim.start() } private fun stopDragging() { fun stopDragging() { if (startingChild != null) { cancelChildExpansion(startingChild!!) startingChild = null Loading
packages/SystemUI/tests/src/com/android/systemui/shade/NotificationShadeWindowViewControllerTest.kt +8 −0 Original line number Diff line number Diff line Loading @@ -578,6 +578,14 @@ class NotificationShadeWindowViewControllerTest : SysuiTestCase() { assertEquals(keyEvent, falsingCollector.lastKeyEvent) } @Test fun cancelCurrentTouch_callsDragDownHelper() { mSetFlagsRule.enableFlags(Flags.FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT) underTest.cancelCurrentTouch() verify(dragDownHelper).stopDragging() } companion object { private val DOWN_EVENT = MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_DOWN, 0f, 0f, 0) private val MOVE_EVENT = MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_MOVE, 0f, 0f, 0) Loading