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

Commit d8012fae authored by Craig Mautner's avatar Craig Mautner Committed by The Android Automerger
Browse files

Don't change task type for launcher activities.

When the launcher starts a new activity don't let it change the task
type. This would cause the stacks to get confused.

Fixes bug 9323103.

Change-Id: Ie1d9c3bf85461827c7255e68003f11ed5a38f63b
parent 7cba11b5
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ final class TaskRecord extends ThumbnailHolder {
    /** Current stack */
    ActivityStack stack;

    private boolean mApplicationTask;
    private boolean mApplicationTask = true;

    TaskRecord(int _taskId, ActivityInfo info, Intent _intent, ActivityStack _stack) {
        taskId = _taskId;
@@ -164,7 +164,10 @@ final class TaskRecord extends ThumbnailHolder {
            // Was not previously in list.
            numFullscreen++;
        }
        // Only set this to be an application task if it has not already been set as home task.
        if (mApplicationTask) {
            mApplicationTask = r.isApplicationActivity();
        }
        mActivities.add(index, r);
    }