public void attachView(View view){
  if (view == null) {
    throw new IllegalArgumentException("Mvp view must be not null");
  }
  boolean isViewAdded=mViews.add(view);
  if (!isViewAdded) {
    return;
  }
  mInRestoreState.add(view);
  restoreState(view);
  mInRestoreState.remove(view);
}

public void attachView ( View view ) { if ( view == null ) { throw new IllegalArgumentException ( "Mvp view must be not null" ) ; } boolean isViewAdded = mViews . add ( view ) ; if ( ! isViewAdded ) { return ; } mInRestoreState . add ( view ) ; restoreState ( view ) ; mInRestoreState . remove ( view ) ; }
attach view to view state and apply saves state
