private boolean isActivityMatching(Activity currentActivity, String name){
		if(currentActivity != null && currentActivity.getClass().getSimpleName().equals(name)) {
			return true;
		}
		return false;
	}
private boolean isActivityMatching ( Activity currentActivity , String name ) { if ( currentActivity != null && currentActivity . getClass ( ) . getSimpleName ( ) . equals ( name ) ) { return true ; } return false ; }
Compares Activity names.

@param currentActivity the Activity that is currently active
@param name the name to compare

@return true if the Activity names match