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

Commit 74e42e1f authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Notify non-top visible activities to start if no paused activity

Given the path when launching an activity:
realStartActivityLocked
 ensureVisibilityAndConfig(deferResume=true)
  ensureActivitiesVisible(notifyClients=false)
   Skip makeActiveIfNeeded by notifyClients
 Skip ensureConfigAndVisibilityAfterUpdate by deferResume

When launching a translucent activity on an existing non-fullscreen
task with moving the task to front, because there is no activity
needs to pause, there won't be invocation of ensureActivitiesVisible
with notifyClients=true. Then the non-top activity of the task may
stay at visible-requested but the client doesn't get lifecyle change
of onStart to make the activity visible and draw.

So manually invoke makeActiveIfNeeded for the activities of the task.

Bug: 418943399
Flag: EXEMPT bugfix
Test: atest ActivityTaskSupervisorTests# \
      testNonTopVisibleActivitiesActiveWhenLaunchingTranslucent
Change-Id: I926cb6bec3475bb9830c1316b1343c0163dcadd5
parent 8b1153b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment