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

Commit e43df490 authored by Louis Chang's avatar Louis Chang Committed by Automerger Merge Worker
Browse files

Merge "Fix testRelaunchConfigurationChangedWhileBecomingVisible flakiness"...

Merge "Fix testRelaunchConfigurationChangedWhileBecomingVisible flakiness" into sc-v2-dev am: bebfe779 am: 4859b30a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15460617

Change-Id: I563b92512f366ee90d3227061901e3b9d1a427f8
parents dfaabea1 4859b30a
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -2969,14 +2969,15 @@ class Task extends TaskFragment {
    @Nullable
    ActivityRecord getOccludingActivityAbove(ActivityRecord activity) {
        final ActivityRecord top = getActivity(r -> {
            if (!r.occludesParent()) {
                return false;
            }
            if (r == activity) {
                // Reached the given activity, return the activity to stop searching.
                return true;
            }

            if (!r.occludesParent()) {
                return false;
            }

            TaskFragment parent = r.getTaskFragment();
            if (parent == activity.getTaskFragment()) {
                // Found it. This activity on top of the given activity on the same TaskFragment.