private void onOperationFinished ( @ NonNull final OperationDelivery < ? > operationResult ) { logd ( "onOperationFinished " + operationResult ) ; switch ( mState ) { case PAUSED : storeResult ( operationResult ) ; break ; case RESUMED : deliverResult ( operationResult ) ; break ; default : throw new IllegalStateException ( "Unknown state: " + mState ) ; } }
A dispatcher method which decides what to do with an operation result .