/** * Return the Activity the RetainedFragment is attached to or null if it's not currently attached. */ public Activity getActivity() { return mRetainedFragment.getActivity(); }