docs: private boolean isDialog(Activity activity, View decorView){
  		if(decorView == null || !decorView.isShown() || activity == null){
  			return false;
  		}
  		Context viewContext = null;
  		if(decorView != null){
  			viewContext = decorView.getContext();
  		}
  		
  		if (viewContext instanceof ContextThemeWrapper) {
  			ContextThemeWrapper ctw = (ContextThemeWrapper) viewContext;
  			viewContext = ctw.getBaseContext();
  		}
  		Context activityContext = activity;
  		Context activityBaseContext = activity.getBaseContext();
  		return (activityContext.equals(viewContext) || activityBaseContext.equals(viewContext)) && (decorView != activity.getWindow().getDecorView());
  	}