I have a problem with correct dialog fragment dismissing after that orientation was changed. I guess that\'s due to old context because after that activity was recreated there w
Remove the setRetainInstance(true); from onCreateDialog(Bundle savedInstanceState) and keep it in onCreate(Bundle savedInstance) as follows :
setRetainInstance(true);
onCreateDialog(Bundle savedInstanceState)
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRetainInstance(true); }