Reject a request for permission to request a marshmallow using the back button

In my application, I check the necessary permissions for Marshmallow devices in accordance with the recommendations of Google. When permission is required, I use the query resolution method for this:

mActivity.requestPermissions(permissionsList, MY_PERMISSIONS_REQUEST) , which displays dialog boxes similar to the dialog below:

Permission request

While this dialog box is displayed, if the user clicks the back button, I would like the dialog to be rejected. Pressing the back button is currently unaffected.

Is there a way to dismiss these dialogs using the back button?

+6
source share
1 answer

You know that, I think, this is a mistake in AOSP. He should ignore the back button for no reason.

Reported issue for bugtracker: https://code.google.com/p/android/issues/detail?id=231017&thanks=231017&ts=1482770758

0
source

All Articles