diff options
| author | 2023-11-01 11:55:57 +0000 | |
|---|---|---|
| committer | 2023-11-01 13:53:57 +0000 | |
| commit | 3ab0e1d6fce2b411718247adce6efc6cd1e2597a (patch) | |
| tree | 032ab153e902cf26de742a6de60c2c8c8fea9d51 /api/api.go | |
| parent | 87e51c1071488ac728f91e7a228751b2536f5757 (diff) | |
Use jump-cut for invalid custom animation of embedded activity
App may pass zero resource as custom animation to skip animation.
For the case, return a no-op animation with duration 0, so the
ActivityEmbeddingAnimationRunner#createAnimator can get empty
adapters to perform the expected jump-cut.
This aligns the same behavior as non-embedded default case.
Fix: 308684712
Test: ActivityEmbeddingAnimationRunnerTests#testInvalidCustomAnimation
Change-Id: Ie62fc70a74319840ed197cee73ae9d37fa628971
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions