Simple Stack 0.9.1
Pre-release
Pre-release
Simple Stack 0.9.1 (2017-02-09)
- _BREAKING CHANGE(!)_:
BackstackDelegatehas a new method which must be called:backstackDelegate.onDestroy()
Not callingbackstackDelegate.onDestroy()will most likely result in memory leak, so please make sure you call it paired withonCreate(). - BREAKING CHANGE:
BackstackDelegate.clearStatesNotIn()is no longer public, because it is automatically managed on state change completion. - ENHANCEMENT: Added
Backstack.CompletionListenerwhich listens to when backstack has completed a state change.
AddedBackstack.addCompletionListener()andBackstack.removeCompletionListener()methods.
The backstack keeps a strong reference to your completion listener, so make sure you remove your change listener when no longer needed. - ENHANCEMENT: It is no longer the responsibility of the
StateChangerto callbackstackDelegate.clearStatesNotIn().
TheBackstackDelegateregisters itself as aCompletionListener, and therefore it can callclearStatesNotIn()automatically. - ENHANCEMENT: Added
flow-samplechanged to use Simple-Stack, as namesimple-stack-flow-masterdetail.