Not able to dismiss custom dialog

He is using this extension that’s why it requires the screen overlay permission.