ailabstw / social-distancing-android

Taiwan Social Distancing App - Android
https://play.google.com/store/apps/details?id=tw.gov.cdc.exposurenotifications&hl=zh_TW&gl=US
MIT License
91 stars 57 forks source link

Double Splash Screen on Android 12 #15

Open seventhmoon opened 3 years ago

seventhmoon commented 3 years ago

https://developer.android.com/about/versions/12/features/splash-screen

Android 12 adds the SplashScreen API, which enables a new app launch animation for all apps.

However, Social Distancing app already implemented a custom Splash Screen. Which caused double Splash Screen on Android 12.

The current implementation is a wait of 600ms https://github.com/ailabstw/social-distancing-android/blob/4aaa3e3e10d49ecc2b9abe0379c332b86f9b6b72/SocialDistance/src/main/java/tw/gov/cdc/exposurenotifications/activity/SplashActivity.kt#L14-L17

It will be better if migrate to SplashScreen Compat Library

seventhmoon commented 3 years ago

An article from a GDE which may help you on this https://blog.csdn.net/guolin_blog/article/details/120275319

catcutecat commented 3 years ago

Thanks for your reminder of the double splash screen issue on Android 12. We'll work on it.

seventhmoon commented 2 years ago

https://twitter.com/vadimcaen/status/1483836901228380160

Workaround FYI