commit | f0b8ef9dfd26960b867cf5dd8a0d8351f8d668fd | [log] [tgz] |
---|---|---|
author | Alex Chau <alexchau@google.com> | Wed Sep 01 15:10:37 2021 +0100 |
committer | Alex Chau <alexchau@google.com> | Wed Sep 01 15:10:37 2021 +0100 |
tree | f1b82c9e370c7023dd9dbcd06c20c2401ea316f8 | |
parent | 125158232eaa2d52d9444f8c2e2a6fc50cb5bebd [diff] |
Only restore previous currentPage in applyLoadPlan if mCurrentPage is outdated Bug: 197493120 Test: manual Change-Id: I196088c848f9fa8ec23f6c803226d674ba3e088b
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 6aa7e06..e99835e 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -1367,7 +1367,10 @@ } else if (currentTaskId != -1) { currentTaskView = getTaskViewByTaskId(currentTaskId); if (currentTaskView != null) { - setCurrentPage(indexOfChild(currentTaskView)); + int currentTaskViewIndex = indexOfChild(currentTaskView); + if (mCurrentPage != currentTaskViewIndex) { + setCurrentPage(currentTaskViewIndex); + } } }