https://kotlinlang.org logo
#compose
Title
# compose
m

molikto

04/23/2020, 4:47 AM
I think this is a bug but want to confirm: I have a
savedInstanceState
inside a "view pager" page, and when I go to another page then come back I got an
Key -751342538 was already registered. Please call unregister before registering again
at androidx.ui.savedinstancestate.UiSavedStateRegistryImpl.registerProvider
l

Leland Richardson [G]

04/23/2020, 6:11 AM
cc @Andrey Kulikov
a

Andrey Kulikov

04/23/2020, 9:21 AM
hey! could you please show the code of your view pager? it is a bug, I recently reproduced a similar issue and hope to fix it soon
m

molikto

04/23/2020, 12:24 PM
Turns out the minimal example I am able to reproduce it is when the state is created inside a AdapterList. if the savedInstanceState is move out then it doesn't crash. In my case, I don't really need to declear it inside a AdapterList item --- it is an header with some state
a

Andrey Kulikov

04/23/2020, 12:58 PM
Thanks, I will try to fix it
3 Views