use of com.zhuinden.simplestackdemomultistack.application.Key in project simple-stack by Zhuinden.
the class CloudSyncView method clickButton.
@OnClick(R.id.first_button)
public void clickButton(View view) {
Key key = Backstack.getKey(getContext());
key.selectDelegate(getContext()).getBackstack().goTo(AnotherKey.create());
}
use of com.zhuinden.simplestackdemomultistack.application.Key in project simple-stack by Zhuinden.
the class Multistack method restoreViewFromState.
public void restoreViewFromState(View view) {
Key key = Backstack.getKey(view.getContext());
BackstackDelegate backstackDelegate = key.selectDelegate(view.getContext());
backstackDelegate.restoreViewFromState(view);
}
use of com.zhuinden.simplestackdemomultistack.application.Key in project simple-stack by Zhuinden.
the class Multistack method persistViewToState.
public void persistViewToState(View view) {
if (view != null) {
Key key = Backstack.getKey(view.getContext());
BackstackDelegate backstackDelegate = key.selectDelegate(view.getContext());
backstackDelegate.persistViewToState(view);
}
}
Aggregations