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

Commit 9756755d authored by Winson Chung's avatar Winson Chung
Browse files

Fixing merge issue from ag/830529

- A whole slew of changes didn't make that CL

Bug: 26043233
Change-Id: I470005f1afbf4ca23e6cfe40a497c5c67bb794aa
parent 4e5fb2f4
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -176,9 +176,6 @@ public class Task {

    /** Set the grouping */
    public void setGroup(TaskGrouping group) {
        if (group != null && this.group != null) {
            throw new RuntimeException("This task is already assigned to a group.");
        }
        this.group = group;
    }

+3 −2
Original line number Diff line number Diff line
@@ -465,9 +465,8 @@ public class TaskStack {
                if (notifyStackChanges) {
                    mCb.onStackTaskRemoved(this, task, i == (taskCount - 1), null);
                }
            } else {
                newTasks.add(task);
            }
            task.setGroup(null);
        }

        // Add any new tasks
@@ -507,6 +506,8 @@ public class TaskStack {
        mHistoryTaskList.set(historyTasks);
        mRawTaskList.clear();
        mRawTaskList.addAll(newTasks);
        mGroups.clear();
        mAffinitiesGroups.clear();
    }

    /** Gets the front task */
+1 −0
Original line number Diff line number Diff line
@@ -602,6 +602,7 @@ public class RecentsView extends FrameLayout {

    public final void onBusEvent(TaskStackUpdatedEvent event) {
        mStack.setTasks(event.stack.computeAllTasksList(), true /* notifyStackChanges */);
        mStack.createAffiliatedGroupings(getContext());
    }

    /**
+1 −0
Original line number Diff line number Diff line
@@ -129,6 +129,7 @@ public class TaskViewThumbnail extends View {
            mBitmapShader = null;
            mDrawPaint.setShader(null);
        }
        invalidate();
    }

    /** Updates the paint to draw the thumbnail. */