Assigned
Status Update
Comments
le...@gmail.com <le...@gmail.com> #2
Hey hughesno1@, when do you add the onPreDrawListener to delay the rendering of activity? Mind providing us with a sample application?
ja...@veeva.com <ja...@veeva.com> #3
Nothing was specified to wait for and there are no blocking bugs or pending CLs. For usage information see go/bugjuggler.
ja...@veeva.com <ja...@veeva.com> #4
ja...@veeva.com <ja...@veeva.com> #5
Hi. I've received your bug and will wait for b/372873253 to be updated by hughesno1@gmail.com and then assign the bug to wilsonshih@google.com.
Description
Component used: androidx.core.splashcreen
Version used: 1.0.1
Devices/Android versions reproduced on: Emulator API 31 and 30
Android Compose: 1.5.0-beta01
We have a Compose App and we are adding the SplashScreen (
androidx.core.splashscreen
) when we init the app, we have different destinations when we navigate and we are keeping the screen on until we reach some destinations.On the
MainScreen
we are listening to events to remove theSplashScreen
:And we are providing to all the screens this value through a
CompositionLocalProvider
:And when some screen wants to remove the SplashScreen:
Everything works well if you run the app, SplashScreen is shown and when from the screen call to remove it, this is removed.
Issue
The issue happens when we run Espresso Tests, SplashScreen is stuck and Espresso tests never end.
Here you can find a sample project, if you runhttps://github.com/jarroyoesp/SplashScreenIssue
ExampleInstrumentedTest
you will see how SplashScreen is stuck ->