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

Skip to content
Commit 19c761e2 authored by wilsonshih's avatar wilsonshih
Browse files

Defer PB animation if previous window cannot show with snapshot.

Disables the `always_capture_activity_snapshot` flag to mitigate
performance regressions and conserve system resources.
With this strategy, the system always makes the previous activity
visible if no snapshot is available. This also defers the predictive
back transition because the system won't add a splash screen window,
which could make the user perceive a lack of immediate feedback during
the transition.

Bug: 362183912
Bug: 374621014
Flag: com.android.window.flags.defer_predictive_animation_if_no_snapshot
Test: simulate the case on b/360782826. Launch several activities with
doesn't opt-in predictive back feature but let the top activity opt-in.
Verify user won't see black screen while back animation start.

Change-Id: I069a5d4a28375554d8e15d43c9ca91c36b7b2a4e
parent 428aef40
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