mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
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) {
|
||||
currentTaskView = getTaskViewByTaskId(currentTaskId);
|
||||
if (currentTaskView != null) {
|
||||
setCurrentPage(indexOfChild(currentTaskView));
|
||||
int currentTaskViewIndex = indexOfChild(currentTaskView);
|
||||
if (mCurrentPage != currentTaskViewIndex) {
|
||||
setCurrentPage(currentTaskViewIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user