private void initCancelable ( ) { if ( ! isCancelable ) { return ; } View view = rootView . findViewById ( R . id . dialogplus_outmost_container ) ; view . setOnTouchListener ( onCancelableTouchListener ) ; }
It is called to set whether the dialog is cancellable by pressing back button or touching the black overlay