public static void show ( FragmentManager fragmentManager , Class < ? extends MvcDialog > dialogClass ) { FragmentTransaction ft = fragmentManager . beginTransaction ( ) ; MvcDialog dialogFragment = ( MvcDialog ) fragmentManager . findFragmentByTag ( dialogClass . getName ( ) ) ; if ( dialogFragment == null ) { try { dialogFragment = new ReflectUtils . newObjectByType <> ( dialogClass ) . newInstance ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } ft . addToBackStack ( null ) ; dialogFragment . show ( ft , dialogClass . getName ( ) ) ; }
Show dialog .