public void onSaveInstanceState ( Bundle outState ) { if ( mParentDelegate == null ) { Bundle moxyDelegateBundle = new Bundle ( ) ; outState . putBundle ( MOXY_DELEGATE_TAGS_KEY , moxyDelegateBundle ) ; outState = moxyDelegateBundle ; } outState . putAll ( mBundle ) ; outState . putString ( mKeyTag , mDelegateTag ) ; for ( MvpDelegate childDelegate : mChildDelegates ) { childDelegate . onSaveInstanceState ( outState ) ; } }
Save presenters tag prefix to save state for restore presenters at future after delegate recreate