Simple Stack 1.6.2
Simple Stack 1.6.2 (2017-05-14)
-
MINOR CHANGE:
DefaultStateChangerno longer explicitly demands aStateKey, because bothLayoutInflationStrategyandGetViewChangeHandlerStrategycan be re-defined for custom behavior. -
Added
GetViewChangeHandlerStrategytoDefaultStateChangerto allow re-defining the view change handler behavior. -
Added
ContextCreationStrategytoDefaultStateChangerto support Mortar scopes, or anything similar in design. -
Added
BackstackManager.StateChangeCompletionListenerto add a hook where you can listen for the completion of state changes reliably - even if they were forced to execute.
Also added addStateChangeCompletionListener to BackstackDelegate and Navigator.Installer accordingly.
Please make sure it does not retain a reference to enclosing Activity, to avoid memory leaks.
-
Minor fix:
setKeyFilter(),setKeyParceler(), andsetStateClearStrategy()inBackstackDelegatenow throw if they are set after callingonCreate(), as per docs. -
Bump
state-bundleversion to1.1.5 -
ADDED:
simple-stack-mortar-sample, which is based onmortar-samplefromsquare/mortar, but usingSimple-StackandService-Tree.