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

Commit dc9b7e7e authored by Winson Chung's avatar Winson Chung
Browse files

Don't clobber intent flags when starting recent activities anew. (Bug 16327074)

Change-Id: I3bfee312d5e3167d443be48580da55d8b69b485e
parent 93a412ea
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -456,9 +456,11 @@ public class RecentsView extends FrameLayout implements TaskStackView.TaskStackV
                } else {
                    // Launch the activity anew with the desired animation
                    Intent i = new Intent(task.key.baseIntent);
                    i.setFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY
                            | Intent.FLAG_ACTIVITY_TASK_ON_HOME
                            | Intent.FLAG_ACTIVITY_NEW_TASK);
                    i.addFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY
                            | Intent.FLAG_ACTIVITY_TASK_ON_HOME);
                    if ((i.getFlags() & Intent.FLAG_ACTIVITY_NEW_DOCUMENT) == 0) {
                        i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                    }
                    try {
                        UserHandle taskUser = new UserHandle(task.userId);
                        if (launchOpts != null) {