changeset 427:b51c10cc7325

android: fixed "check_plugin_permissions" when no permission is requested
author Goffi <goffi@goffi.org>
date Sun, 01 Mar 2020 22:11:25 +0100
parents d3a6ae859556
children 85fc3da9560c
files cagou/core/platform_/android.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/core/platform_/android.py	Wed Feb 26 22:07:15 2020 +0100
+++ b/cagou/core/platform_/android.py	Sun Mar 01 22:11:25 2020 +0100
@@ -441,6 +441,7 @@
         perms = plug_info.get("android_permissons")
         if not perms:
             callback()
+            return
         perms = [f"android.permission.{p}" if '.' not in p else p for p in perms]
 
         def request_permissions_cb(permissions, granted):