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

Commit 8cf3a71f authored by Ikram Gabiyev's avatar Ikram Gabiyev Committed by Android (Google) Code Review
Browse files

Merge "Disallow userLeaving when split drag drop" into main

parents 3bd00444 86860b8e
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -1519,7 +1519,10 @@ public class ActivityTaskSupervisor implements RecentTasks.Callbacks {
        }
        }


        try {
        try {
            if ((flags & ActivityManager.MOVE_TASK_NO_USER_ACTION) == 0) {
            // We allow enter PiP for previous front task if not requested otherwise via options.
            boolean shouldCauseEnterPip = options == null
                    || !options.disallowEnterPictureInPictureWhileLaunching();
            if ((flags & ActivityManager.MOVE_TASK_NO_USER_ACTION) == 0 && shouldCauseEnterPip) {
                mUserLeaving = true;
                mUserLeaving = true;
            }
            }