Skip to content

ViewState not working as expected #15

@kAliert

Description

@kAliert

Hi!

First of all i want to thank you for this library!

I think i encountered a problem with the viewstate. It doesn´t work like expected and the behaviour can be reproduced with your given example app.

  • run the app
  • open view state
  • scroll the first item horizontally
  • scroll down
    => some elements have the same view state as the first item

This behaviour first occured in an example i made:

  • i created a recycler view with switches
  • after i opened the fragment i changed the view state of one item
  • than i scrolled the view
    => some elements were checked

The strange thing: when i first scroll the view and change afterwards the state of the items this bug doesn´t occure. So i downloaded your example to check if i made something wrong. But also in your example i was able to reproduce this unexpected behaviour.

Maybe you can try to reproduce this behaviour. Please let me know if im doing something wrong or you have a solution for this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions