@Override public void onStart() { super.onStart(); mActivityReady = true; // Check if superDismiss() had been called before. This can happen if in a long // running operation, the user hits the home button and closes this fragment's activity. // Upon returning, we want to dismiss this progress dialog fragment. if (mCalledSuperDismiss) { superDismiss(); } }