Only restore previous currentPage in applyLoadPlan if mCurrentPage is outdated
Bug: 197493120 Test: manual Change-Id: I196088c848f9fa8ec23f6c803226d674ba3e088b
This commit is contained in:
@@ -1367,7 +1367,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
|||||||
} else if (currentTaskId != -1) {
|
} else if (currentTaskId != -1) {
|
||||||
currentTaskView = getTaskViewByTaskId(currentTaskId);
|
currentTaskView = getTaskViewByTaskId(currentTaskId);
|
||||||
if (currentTaskView != null) {
|
if (currentTaskView != null) {
|
||||||
setCurrentPage(indexOfChild(currentTaskView));
|
int currentTaskViewIndex = indexOfChild(currentTaskView);
|
||||||
|
if (mCurrentPage != currentTaskViewIndex) {
|
||||||
|
setCurrentPage(currentTaskViewIndex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user