Zhuinden / simple-stack

[ACTIVE] Simple Stack, a backstack library / navigation framework for simpler navigation and state management (for fragments, views, or whatevers).
Apache License 2.0
1.36k stars 76 forks source link

Add a new Bundle to SavedState which isn't overridden by Navigator.persistViewToState #153

Closed Zhuinden closed 5 years ago

Zhuinden commented 5 years ago

Currently that bundle is directly set by Navigator.persistViewToState(), but this means you can't use that bundle for storing state of other objects in conjunction with this method call, f.ex. the state of Shards.

Zhuinden commented 5 years ago

Also the SavedState created is directly set over whatever is currently in the keyState map. D'oh.

I might need to fix that later, but this api has both a builder AND mutator methods.

That's kind of awkward.