Commit 9b779a05 authored by Evan W. Patton's avatar Evan W. Patton Committed by Susan Rati Lane

Fix permissions handling on older Android versions

Change-Id: If93a3e452908781c35e577c5d72df88eb028ade8
parent 38a69a94
......@@ -2472,8 +2472,7 @@ public class Form extends AppInventorCompatActivity
*/
public void askPermission(final String permission, final PermissionResultHandler responseRequestor) {
final Form form = this;
if (ContextCompat.checkSelfPermission(form, permission) ==
PackageManager.PERMISSION_GRANTED) {
if (!isDeniedPermission(permission)) {
// We already have permission, so no need to ask
responseRequestor.HandlePermissionResponse(permission, true);
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment