Screen overlays are considered 'dangerous' in latest Android versions, specially when certain user interaction is required, as they can be used to cheat the user.
It is possibly due to the ToastMessageShow just before requesting a permission. Try to remove it and see what happens