WAI
Status Update
Comments
al...@google.com <al...@google.com>
ca...@google.com <ca...@google.com> #2
Can you please double check the link to your git repository for the repro? It leads to a 404
dh...@linecorp.com <dh...@linecorp.com> #3
ca...@google.com <ca...@google.com> #4
After looking at the code, what surprises me is that it works on Android 12.
The correct way to achieve this is to never return false in the KeepOnScreenCondition
. Otherwise, the time between the condition being false and the new activity being visible will let the splash screen activity appear
The condition is evaluated for the current view tree only, so as soon as you start the next activity, it will be ignored and the splash screen will be removed.
ca...@google.com <ca...@google.com> #5
I'm marking this as working as intended, but please let me know if it doesn't work.
Description
Component used: Version used:androidx.core:core-splashscreen:1.0.0-alpha02 Devices/Android versions reproduced on: OS11(Galaxy Note10) and OS12(Pixel4) devices
To migrate the Splash Screen, we are using the following method. "Keep the custom activity, but prevent it from displaying"https://developer.android.com/guide/topics/ui/splash-screen/migrate#best-practices
We want to maintain the Splash Activity we are using, and move to the Main Activity when the initialization work is completed in the Splash Activity.
In OS12, Splash Activity is not visible, and the transition to Main Activity is good. (OS12-Pixel-4.mp4)
But, in OS11, when switching to the main activity, the splash activity appears for a while and then moves. (OS11-Galaxy-Note-10.mp4)
Is there any way to solve this part?
If this is a bug in the library, we would appreciate if you could attach:
Sample project to trigger the issue.https://github.com/DongHoon-Wooo/SplashScreen.git
A screenrecord or screenshots showing the issue (if UI related). I added attachments.