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

Skip to content
Commit 8f42ef56 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Update visibility when visible activity crashed

Previously, if a top fullscreen app is crashed when a display
transition is collecting, the transition will be ready and sent
directly from finishTopCrashedActivityLocked -> finishIfPossible
 -> continueWindowLayout -> BLASTSyncEngine.SyncGroup#tryFinish.
That causes the transition to contain a change to hide display
area because nothing is visible in it.

Now finishTopCrashedActivities has similar steps as handleAppDied.
If there is perceptible activity in the crashed process, the
next top activity will be requested to visible at the same time.
Then the transition can recognize that the display area is visible.

Note that finishTopCrashedActivityLocked calls finishIfPossible,
so it may already adjust focusable task. But because the crashing
activity is pausing (pause->resume from switch display and then
resume -> pausing when finishing for crash), the next activity
won't resume until the pausing is gone. Then it requires
ensureActivitiesVisible to make the current top activity (its
task was moved to front when adjusting focusable task) visible.

Bug: 300790517
Test: RootWindowContainerTests#testRemovingRootTaskOnAppCrash
Change-Id: I935121ed53638720ec3c8ef872f7c78e90edd714
parent 6c29a6fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment