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(); 
  } 
} 
 
Experience pair programming with AI  Get Codota for Java