Skip to content

Simple Stack 2.6.0

Compare
Choose a tag to compare
@Zhuinden Zhuinden released this 08 Mar 04:07
· 81 commits to master since this release

Simple-Stack 2.6.0 (2021-03-08)

  • ADD: Backstack.addRetainedObject(objectTag, retainedObject), Backstack.hasRetainedObject(objectTag), Backstack.removeRetainedObject(objectTag), Backstack.getRetainedObject(objectTag).

This allows simpler way of persisting an object instance across configuration changes.

Also, retained objects that implement Bundleable are given state restoration callbacks.

  • UPDATE: Add simple-stack-example-multistack-nested-fragment that shows how to create a fragment that has Backstacks for its child fragments, thus creating true multi-stack apps using nested backstacks.

  • DEPRECATED: Backstack.addCompletionListener, Backstack.removeCompletionListener, Backstack.removeCompletionListeners.

These were the same as addStateChangeCompletionListener and removeStateChangeCompletionListener, and should not have been duplicate APIs.