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

Commit 437c2aab authored by Louis Chang's avatar Louis Chang
Browse files

Fix unable to launch app again from launcher

The parent of an embedded Task is a TaskFragment. So, the
intentTask was set to null and failed to bring it to front.

Bug: 195911375
Test: start app with embedded task again from launcher

Change-Id: Id01cb689a3637d7f49c3806f45ffd872035c58ad
parent 4c06d013
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2682,7 +2682,7 @@ class ActivityStarter {
                            && mTargetRootTask != intentTask.getParent().asTask()) {
                        intentTask.getParent().positionChildAt(POSITION_TOP, intentTask,
                                false /* includingParents */);
                        intentTask = intentTask.getParent().asTask();
                        intentTask = intentTask.getParent().asTaskFragment().getTask();
                    }
                    // If the task is in multi-windowing mode, the activity may already be on
                    // the top (visible to user but not the global top), then the result code