Android 11: Permission dialog is not modal anymore. Is this by design?

Viewed 655

Pre Android 11, when the permission dialog comes up, you have to tap either allow or deny. You can't tap outside the dialog box. With Android 11, you can tap outside of the box, and if you do, it acts like a deny, which is probably not what the user expects. Is this by design or is this a bug? Current C# code is below. Should this change for Android 11?

Currently, I do something like this, and in pre-Android 11, the permission dialog is modal.

if (permissionCheck == Permission.Denied)
   { ActivityCompat.RequestPermissions(this, new String[] { etc., etc. } 
else 
   { initialize location stuff }

Then my OnRequestPermissionsResult will check the result and do the right thing.

0 Answers
Related