public Activity getCurrentActivity(boolean shouldSleepFirst, boolean waitForActivity) {
		if(shouldSleepFirst){
			sleeper.sleep();
		}
		if(!config.trackActivities){
			return activity;
		}
		
		if(waitForActivity){
			waitForActivityIfNotAvailable();
		}
		if(!activityStack.isEmpty()){
			activity=activityStack.peek().get();
		}
		return activity;
	}
public Activity getCurrentActivity ( boolean shouldSleepFirst , boolean waitForActivity ) { if ( shouldSleepFirst ) { sleeper . sleep ( ) ; } if ( ! config . trackActivities ) { return activity ; } if ( waitForActivity ) { waitForActivityIfNotAvailable ( ) ; } if ( ! activityStack . isEmpty ( ) ) { activity = activityStack . peek ( ) . get ( ) ; } return activity ; }
Returns the current {@code Activity}.

@param shouldSleepFirst whether to sleep a default pause first
@param waitForActivity whether to wait for the activity
@return the current {@code Activity}