Add checks for API level requirements for new methods
Check if view is null in isDialogOpen()