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

Commit 2bbc80f4 authored by wilsonshih's avatar wilsonshih
Browse files

Correct record activity snapshot condition.

Predictive back animation will happen when top activity has opt-in
enableOnBackInvokedCallback, and there will use activity snapshot for
previous activity.
So the correct condition is to record snapshot when opening activity
has opt-in onBackInvoked, instead of checking the closeing activity.

Bug: 259497289
Test: atest WindowOnBackInvokedDispatcherTest
Test: enable activity snapshot, and verify there will record activity
snapshot for close activity if the opening activity has opt-in
onBackInvoked.

Change-Id: I51814441bccd5e309cc3b310528b5c0bee3f24ba
parent 19bd7034
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