@Override protected void onRestoreInstanceState(Parcelable state) { super.onRestoreInstanceState(state); if (dialogInProgress) { showDialog(); } }