CardStackView icon indicating copy to clipboard operation
CardStackView copied to clipboard

CardStackView doesn't remember its old state

Open c-b-h opened this issue 7 years ago • 3 comments

Upon configuration changes (e.g. orientation change or returning to app after system killed app) CardStackView doesn't remember its old state and thus resets.

Basically the CardStackState could have been retained (after becoming a Parcelable) in Parcelable onSaveInstanceState() and recovered in void onRestoreInstanceState(Parcelable state).

c-b-h avatar Apr 26 '18 10:04 c-b-h

Was this issue ever solved? Any solution?

MilanParikh avatar Apr 16 '19 19:04 MilanParikh

Hey folks, implementation this here in a forked version https://github.com/ashishkrishnan/CardStackView/commits/ak/restore-state

Running some tests, will raise a PR soon. Untill then, feel free to play around.

ashishkrishnan avatar Sep 22 '20 16:09 ashishkrishnan

This is not accepted or what?

shrikantbadwaik avatar Apr 11 '22 10:04 shrikantbadwaik