Fixed
Status Update
Comments
cl...@google.com <cl...@google.com> #2
A couple of questions:
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
ap...@google.com <ap...@google.com> #3
Tested on Android 12 Emulator with custom executor, but cannot repro this issue.
Description
Android Studio Build: Android Studio 4.1 Canary 8
Version of Gradle Plugin: 4.1.0-alpha08
Version of Gradle: 6.3
Version of Java: Java 11
OS: macOS 10.15.4
Steps to Reproduce:
Expected: A yellow screen
Actual: A white screen
Additional notes:
You can fix the issue by passing
1
as the current state forCrossfade
Description:
If you pass
null
as the initial state toCrossfade
it doesn't compose properly and a white screen is shown.The reason is the statement
if (current != state.current)
which fails sincestate.current
default tonull
.Crossfade needs to use a sentinel value instead of
null
as it's internal default value or make the type parameterT
non null to prevent this issue.