From 8aa9959413a06c3d2ff75e0c7be9e3cb7ac7cd2e Mon Sep 17 00:00:00 2001 From: Winson Date: Tue, 19 Jan 2016 15:07:07 -0800 Subject: [PATCH] Starting the dismiss animation in parallel with the gesture. - Introduces notion of ignored tasks for the purposes of layout in TaskStackView. This can be used during drag and drop, and while dismissing to calculate the state of the stack without the task that the user is currently interacting with. - Fixing minor layout issue when the front/back task transforms are improperly calculated when there is a single task - Fixing minor issue when the anchor task is calculated incorrectly when dismissing task views Change-Id: I1eb0864a52e53562e4d573a6ed4f8a5a1615aff9 --- .../SystemUI/res/values-sw600dp/config.xml | 2 +- packages/SystemUI/res/values/config.xml | 2 +- .../src/com/android/systemui/SwipeHelper.java | 13 +- .../history/RecentsHistoryAdapter.java | 5 +- .../systemui/recents/misc/RectFEvaluator.java | 52 ++ .../systemui/recents/model/TaskStack.java | 19 +- .../systemui/recents/views/RecentsView.java | 9 +- .../views/TaskStackLayoutAlgorithm.java | 27 +- .../systemui/recents/views/TaskStackView.java | 455 +++++++++++------- .../recents/views/TaskStackViewScroller.java | 1 + .../views/TaskStackViewTouchHandler.java | 208 +++++++- .../recents/views/TaskViewTransform.java | 29 +- 12 files changed, 609 insertions(+), 213 deletions(-) create mode 100644 packages/SystemUI/src/com/android/systemui/recents/misc/RectFEvaluator.java diff --git a/packages/SystemUI/res/values-sw600dp/config.xml b/packages/SystemUI/res/values-sw600dp/config.xml index 6795da43e087a..17ff19549a0d0 100644 --- a/packages/SystemUI/res/values-sw600dp/config.xml +++ b/packages/SystemUI/res/values-sw600dp/config.xml @@ -35,7 +35,7 @@ - -4 + -3 3 - -4 + -3 3