Simple Stack 0.7.0
Pre-release
Pre-release
Simple Stack 0.7.0 (2017-01-31)
- BREAKING CHANGE: Removed
Backstack.get(Context),BackstackDelegate.isSystemService(String)andBackstackDelegate.getSystemService(Context).
These can be easily done manually with the following setup:
public static Backstack get(Context context) {
// noinspection ResourceType
return (Backstack)context.getSystemService(BACKSTACK);
}and
@Override
public Object getSystemService(String name) {
if(name.equals(BACKSTACK)) {
return backstackDelegate.getBackstack();
}
return super.getSystemService(name);
}Therefore the preferred solution is to provide the Backstack instance via @Inject instead of Backstack.get(Context).
Example for Backstack.get(Context) was moved to simple-stack-example as BackstackService.
Example for @Inject Backstack backstack; is seen in simple-stack-example-mvp.