public void injectPresenter ( MvpPresenter < ? > presenter , String delegateTag ) { Set < String > delegateTags = mConnections . get ( presenter ) ; if ( delegateTags == null ) { delegateTags = new HashSet <> ( ) ; mConnections . put ( presenter , delegateTags ) ; } delegateTags . add ( delegateTag ) ; Set < MvpPresenter > presenters = mTags . get ( delegateTag ) ; if ( presenters == null ) { presenters = new HashSet <> ( ) ; mTags . put ( delegateTag , presenters ) ; } presenters . add ( presenter ) ; }
Save delegate tag when it inject presenter to delegate s object