mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Merge "launcher: check if task still exists before leaving it in focus" into sc-v2-dev
This commit is contained in:
@@ -1158,7 +1158,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
final TaskView taskView = (TaskView) getChildAt(pageIndex);
|
||||
taskView.bind(task, mOrientationState);
|
||||
}
|
||||
if (mFocusedTaskId == -1 && getTaskViewCount() > 0) {
|
||||
|
||||
// If the list changed, maybe the focused task doesn't exist anymore
|
||||
if (getFocusedTaskView() == null && getTaskViewCount() > 0) {
|
||||
mFocusedTaskId = getTaskViewAt(0).getTaskId();
|
||||
}
|
||||
updateTaskSize();
|
||||
|
||||
Reference in New Issue
Block a user