Loading services/core/java/com/android/server/wm/ActivityStack.java +1 −1 Original line number Diff line number Diff line Loading @@ -3287,7 +3287,7 @@ class ActivityStack extends Task { if (DisplayContent.alwaysCreateStack(getWindowingMode(), getActivityType())) { // This stack will only contain one task, so just return itself since all stacks ara now // tasks and all tasks are now stacks. task = reuseAsLeafTask(voiceSession, voiceInteractor, info, activity); task = reuseAsLeafTask(voiceSession, voiceInteractor, intent, info, activity); } else { // Create child task since this stack can contain multiple tasks. final int taskId = activity != null Loading services/core/java/com/android/server/wm/Task.java +15 −4 Original line number Diff line number Diff line Loading @@ -581,10 +581,10 @@ class Task extends WindowContainer<WindowContainer> { } Task reuseAsLeafTask(IVoiceInteractionSession _voiceSession, IVoiceInteractor _voiceInteractor, ActivityInfo info, ActivityRecord activity) { Intent intent, ActivityInfo info, ActivityRecord activity) { voiceSession = _voiceSession; voiceInteractor = _voiceInteractor; setIntent(activity); setIntent(activity, intent, info); setMinDimensions(info); return this; } Loading Loading @@ -919,12 +919,23 @@ class Task extends WindowContainer<WindowContainer> { return SystemClock.elapsedRealtime() - lastActiveTime; } /** Sets the original intent, and the calling uid and package. */ /** @see #setIntent(ActivityRecord, Intent, ActivityInfo) */ void setIntent(ActivityRecord r) { setIntent(r, null /* intent */, null /* info */); } /** * Sets the original intent, and the calling uid and package. * * @param r The activity that started the task * @param intent The task info which could be different from {@code r.intent} if set. * @param info The activity info which could be different from {@code r.info} if set. */ void setIntent(ActivityRecord r, @Nullable Intent intent, @Nullable ActivityInfo info) { mCallingUid = r.launchedFromUid; mCallingPackage = r.launchedFromPackage; mCallingFeatureId = r.launchedFromFeatureId; setIntent(r.intent, r.info); setIntent(intent != null ? intent : r.intent, info != null ? info : r.info); setLockTaskAuth(r); final WindowContainer parent = getParent(); Loading Loading
services/core/java/com/android/server/wm/ActivityStack.java +1 −1 Original line number Diff line number Diff line Loading @@ -3287,7 +3287,7 @@ class ActivityStack extends Task { if (DisplayContent.alwaysCreateStack(getWindowingMode(), getActivityType())) { // This stack will only contain one task, so just return itself since all stacks ara now // tasks and all tasks are now stacks. task = reuseAsLeafTask(voiceSession, voiceInteractor, info, activity); task = reuseAsLeafTask(voiceSession, voiceInteractor, intent, info, activity); } else { // Create child task since this stack can contain multiple tasks. final int taskId = activity != null Loading
services/core/java/com/android/server/wm/Task.java +15 −4 Original line number Diff line number Diff line Loading @@ -581,10 +581,10 @@ class Task extends WindowContainer<WindowContainer> { } Task reuseAsLeafTask(IVoiceInteractionSession _voiceSession, IVoiceInteractor _voiceInteractor, ActivityInfo info, ActivityRecord activity) { Intent intent, ActivityInfo info, ActivityRecord activity) { voiceSession = _voiceSession; voiceInteractor = _voiceInteractor; setIntent(activity); setIntent(activity, intent, info); setMinDimensions(info); return this; } Loading Loading @@ -919,12 +919,23 @@ class Task extends WindowContainer<WindowContainer> { return SystemClock.elapsedRealtime() - lastActiveTime; } /** Sets the original intent, and the calling uid and package. */ /** @see #setIntent(ActivityRecord, Intent, ActivityInfo) */ void setIntent(ActivityRecord r) { setIntent(r, null /* intent */, null /* info */); } /** * Sets the original intent, and the calling uid and package. * * @param r The activity that started the task * @param intent The task info which could be different from {@code r.intent} if set. * @param info The activity info which could be different from {@code r.info} if set. */ void setIntent(ActivityRecord r, @Nullable Intent intent, @Nullable ActivityInfo info) { mCallingUid = r.launchedFromUid; mCallingPackage = r.launchedFromPackage; mCallingFeatureId = r.launchedFromFeatureId; setIntent(r.intent, r.info); setIntent(intent != null ? intent : r.intent, info != null ? info : r.info); setLockTaskAuth(r); final WindowContainer parent = getParent(); Loading