diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-02-14 15:59:36 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2018-02-16 14:00:09 -0800 |
commit | 841bbf07d0b521bcebe0ef59254e72dbaad52405 (patch) | |
tree | 3aadf4878e169534e063776d2086bc4e56dcc237 /quickstep/src/com/android/quickstep/RecentsView.java | |
parent | bd3a798aa2e326625e4a152f4d3e6cece1d892a1 (diff) | |
download | android_packages_apps_Trebuchet-841bbf07d0b521bcebe0ef59254e72dbaad52405.tar.gz android_packages_apps_Trebuchet-841bbf07d0b521bcebe0ef59254e72dbaad52405.tar.bz2 android_packages_apps_Trebuchet-841bbf07d0b521bcebe0ef59254e72dbaad52405.zip |
Serializing all event handling from SystemUI
> EventQueue is only accessed on the binder thread
> For every new touch down, we use a new event queue to prevent race conditions
> All event hendling are serialized by event queue (including quick switch/scrub)
> Using state handlers for quick scrub
Bug: 73356768
Change-Id: Idde33a348270b8167a087129f177d5d2b54f5822
Diffstat (limited to 'quickstep/src/com/android/quickstep/RecentsView.java')
-rw-r--r-- | quickstep/src/com/android/quickstep/RecentsView.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/quickstep/src/com/android/quickstep/RecentsView.java b/quickstep/src/com/android/quickstep/RecentsView.java index 57188695e..a9d5e630b 100644 --- a/quickstep/src/com/android/quickstep/RecentsView.java +++ b/quickstep/src/com/android/quickstep/RecentsView.java @@ -266,6 +266,8 @@ public class RecentsView extends PagedView implements Insettable { return; } + int oldChildCount = getChildCount(); + // Ensure there are as many views as there are tasks in the stack (adding and trimming as // necessary) final LayoutInflater inflater = LayoutInflater.from(getContext()); @@ -296,6 +298,10 @@ public class RecentsView extends PagedView implements Insettable { taskView.setAlpha(1f); loader.loadTaskData(task); } + + if (oldChildCount != getChildCount()) { + mQuickScrubController.snapToPageForCurrentQuickScrubSection(); + } } private void updateTaskStackListenerState() { |