Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SplashScreen Animation: Add wink animation #5565

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

mikescamell
Copy link
Contributor

@mikescamell mikescamell commented Jan 30, 2025

Task/Issue URL: https://app.asana.com/0/1207908166761516/1209192748061740/f

Description

Adds a new wink animation to the splashscreen for devices on sdk 32+😉

On devices <32 we show the existing static logo splashscreen.

Steps to test this PR

Splashscreen on SDK 32+

  • Open the app
  • Check wink animation plays
  • Press back to exit the app
  • Launch the app
  • Check the animation plays

Splashscreen on SDK < 31

  • Open the app
  • Check the existing static splashscreen logo is shown
  • Press back to exit the app
  • Launch the app
  • Check the existing static splashscreen logo is shown

Demo

Light

light_demo.mp4

Dark

dark_demo.mp4

we can only play the new wink animation on sdk 32+, otherwise we stick to our existing static splash logo

It's necessary to add windowSplashScreenAnimationDuration and this is only used by sdk32, sdk33+ determine the duration via the AnimatedVectorDrawable itself
I observed that on warm starts the animation never gets to fully play out, it seems like it's dismissed before being able to finish which makes it look like something is broken.

Therefore we can register an exit animation listener and use the length of the animation to determine when we should actually move on which results in the animation being played to completion on warm starts.
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@mikescamell mikescamell marked this pull request as ready for review January 30, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant