dont need baseActivity here. You can do
 if (dialogActivity == null) return null;
 else return dialogActivity.get();