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

Commit 33efd883 authored by Louis Chang's avatar Louis Chang
Browse files

TaskFragment without running activity cannot occlude others

A TaskFragment that doesn't contain any running activity should
not occlude the activities behind.

Bug: 200316506
Test: TaskFragmentOrganizerTest
Change-Id: I64823680e8adc04f506410aa051bbfe5989cfbaf
parent 62a65fbf
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -107,8 +107,9 @@ class EnsureActivitiesVisibleHelper {
                final TaskFragment childTaskFragment = child.asTaskFragment();
                childTaskFragment.updateActivityVisibilities(starting, configChanges,
                        preserveWindows, notifyClients);
                mBehindFullyOccludedContainer |= childTaskFragment.getBounds().equals(
                        mTaskFragment.getBounds());
                mBehindFullyOccludedContainer |=
                        childTaskFragment.topRunningActivity() != null
                                && childTaskFragment.getBounds().equals(mTaskFragment.getBounds());
                if (mAboveTop && mTop.getTaskFragment() == childTaskFragment) {
                    mAboveTop = false;
                }