Fixed
Status Update
Comments
cl...@google.com <cl...@google.com> #2
Thanks! This looks like a bug, thank you for reporting!
ap...@google.com <ap...@google.com> #3
I would also recommend setting the value to 10%. When you do that, the behavior is wild.
Dragging up to 10% or between 50% and 90% will cause it to snap back to the start anchor.
Dragging between 10% and 50% or past 90% will cause it to snap to the end anchor.
Dragging up to 10% or between 50% and 90% will cause it to snap back to the start anchor.
Dragging between 10% and 50% or past 90% will cause it to snap to the end anchor.
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.