Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 947905d2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixing crash when emptyView gets added twice" into ub-launcher3-rvc-dev

parents af560750 fd04f702
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1098,7 +1098,7 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
     */
    public void showCurrentTask(int runningTaskId) {
        if (getTaskView(runningTaskId) == null) {
            boolean wasEmpty = getTaskViewCount() == 0;
            boolean wasEmpty = getChildCount() == 0;
            // Add an empty view for now until the task plan is loaded and applied
            final TaskView taskView = mTaskViewPool.getView();
            addView(taskView, mTaskViewStartIndex);