protected Dialog newDialog(Context context) {
		Dialog dialog = new Dialog(context, android.R.style.Theme_Dialog);
		dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
		
		// Register to prevent window leakage
		DialogRegistration.register(context, dialog);
		
		return dialog;
	}
protected Dialog newDialog(Context context) {
		Dialog dialog = new Dialog(context, android.R.style.Theme_Dialog);
		dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
		
		
		DialogRegistration.register(context, dialog);
		
		return dialog;
	}
protected Dialog newDialog ( Context context ) { Dialog dialog = new Dialog ( context , android . R . style . Theme_Dialog ) ; dialog . requestWindowFeature ( Window . FEATURE_NO_TITLE ) ; // Register to prevent window leakage DialogRegistration . register ( context , dialog ) ; return dialog ; }
So we can mock
So we can mock