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

Commit 9b1efeae authored by Garfield Tan's avatar Garfield Tan
Browse files

Allow subclass of TaskRecord.

OEM can set TaskRecordFactory to create their own TaskRecord to support
more states.

Bug: 70029361
Test: go/wm-smoke w/o PiP because sailfish doesn't seem to have that.
Change-Id: I45d01e65c97fd6bc7857021d9c8bedbc249cd433
parent 6798bc30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10020,7 +10020,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                    }
                }
                TaskRecord task = new TaskRecord(this,
                TaskRecord task = TaskRecord.create(this,
                        mStackSupervisor.getNextTaskIdForUserLocked(r.userId),
                        ainfo, intent, description);
                if (!mRecentTasks.addToBottom(task)) {
+2 −2
Original line number Diff line number Diff line
@@ -5022,8 +5022,8 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai
            IVoiceInteractionSession voiceSession, IVoiceInteractor voiceInteractor,
            boolean toTop, ActivityRecord activity, ActivityRecord source,
            ActivityOptions options) {
        final TaskRecord task = new TaskRecord(mService, taskId, info, intent, voiceSession,
                voiceInteractor);
        final TaskRecord task = TaskRecord.create(
                mService, taskId, info, intent, voiceSession, voiceInteractor);
        // add the task to stack first, mTaskPositioner might need the stack association
        addTask(task, toTop, "createTaskRecord");
        final boolean isLockscreenShown = mService.mStackSupervisor.getKeyguardController()