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

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

Merge "Fixes crash when pinning unfocused task in multiwindow"

parents ac5438c5 a61f94ef
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -11316,8 +11316,11 @@ public class ActivityManagerService extends IActivityManager.Stub
        long ident = Binder.clearCallingIdentity();
        try {
            synchronized (this) {
                startLockTaskModeLocked(mStackSupervisor.anyTaskForIdLocked(taskId),
                        true /* isSystemCaller */);
                final TaskRecord task = mStackSupervisor.anyTaskForIdLocked(taskId);
                // When starting lock task mode the stack must be in front and focused
                task.getStack().moveToFront("startSystemLockTaskMode");
                startLockTaskModeLocked(task, true /* isSystemCaller */);
            }
        } finally {
            Binder.restoreCallingIdentity(ident);