Code example for DialogFragment

Methods: getDialogonDestroyView, getRetainInstance

0
  } 
 
  // Hack for android issue 17423 in the compatibility library 
  @Override 
  public void onDestroyView() { 
    if ( getDialog() != null && getRetainInstance() )
      getDialog().setDismissMessage(null);
    super.onDestroyView(); 
  } 
} 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE