@ NonNull protected AbstractButtonBarDialog createDialog ( @ NonNull final AbstractButtonBarDialogBuilder < ? , ? > dialogBuilder ) { return ( ( MaterialDialog . Builder ) dialogBuilder ) . create ( ) ; }
The method which is invoked on subclasses when the preference s dialog is about to be created . The builder which is passed as a method parameter may be manipulated by subclasses in order to change the appearance of the dialog . When views are inflated inside this method the context of the builder should be used in order to ensure that the dialog s theme is used .