static boolean retainPresenterInstance ( boolean keepPresenterInstance , Controller controller ) { return keepPresenterInstance && ( controller . getActivity ( ) . isChangingConfigurations ( ) || ! controller . getActivity ( ) . isFinishing ( ) ) && ! controller . isBeingDestroyed ( ) ; }
Determines whether or not a Presenter Instance should be kept