Status Update
Comments
il...@google.com <il...@google.com> #2
We are also seeing this issue, affects users in production. Is there a workaround for this?
Other than downgrading to jetpack navigation 2.7 where we don't see this issue (as suggested by someone here:
Description
Component used: Navigation
Version used: 2.8.0-alpha08
Devices/Android versions reproduced on: Pixel 3a API 34, Pixel 2 API 30
SavedStateHandle
's.toRoute()
extension fails when deserializing a list of one of the supported types, eg. String. The exception thrown is:java.lang.ClassCastException: java.lang.String[] cannot be cast to java.util.List
.It appears this is caused by the bundle storing the list as an array, and then trying to deserialize it directly as such. This issue does not occur on
NavBackStackEntry
's.toRoute()
extension, so that can be used as a workaround in the meantime.