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

Commit f7a3e79f authored by Charles Chen's avatar Charles Chen
Browse files

Fix placeholder not shown after launch again

This issue is regressed by [1].
When we verify if the container is top active container,
we should filter out the case that the Activity is not in
TaskFragmentContainer.

fixes: 224431790
Test: manual - test steps mentioned in bug

[1]: 3d419be7

Change-Id: Iae3b2b903bf15448d429b8edd25ceeef97e74738
parent 781829d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -501,7 +501,7 @@ public class SplitController implements JetpackTaskFragmentOrganizer.TaskFragmen
        final  TaskFragmentContainer container = getContainerWithActivity(
                activity.getActivityToken());
        // Don't launch placeholder if the container is occluded.
        if (container != getTopActiveContainer()) {
        if (container != null && container != getTopActiveContainer()) {
            return false;
        }