diff options
| author | 2022-01-10 13:05:22 -0800 | |
|---|---|---|
| committer | 2022-01-26 14:26:13 -0800 | |
| commit | 8d392760ab4f2b72476940699a208b9c67e17d68 (patch) | |
| tree | 67e0e4ededbb4ce5acfdaf71acdc96b049aab2d7 /api/api.go | |
| parent | 7a772305c3e2bf25234604293ae7473e0634b19f (diff) | |
Smooth out the alpha / colour animation for drag to split
Previously there were 2 animating surfaces, one for the highlight and
one for the splashscreen. When they animated together there was a bit
of undesirable crossfading.
This change makes it so that the colours and alpha animate together via
ArgbEvaluator and are only applied to 1 surface (the background color
drawable).
It also seems like you can continue to get drag events even after a
drop, so if a drop has happened skip animating. When a drag is
initiated again then mHasDropped is reset again.
Test: manual - drag an app into split and move it between the two split
dropzones, note that the colour animation is smooth.
- wildly drag between the two dropzones & drop, check that
on the next drag that animations animate from alpha 0 rather
than jump cutting to an alpha > 0.
Bug: 207011867
Change-Id: I8a5a681530d889c5c6ef4ad3a0b31af17998af73
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions