Fixed an issue with transparentActivity not closing when dialog is dismissed.