Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

Commit 43a7cd9

Browse files
committed
Update android_permissions.py
1 parent 0a0da39 commit 43a7cd9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

android_permissions.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,16 @@
3737

3838
class AndroidPermissions:
3939
def __init__(self, start_app = None):
40-
#################################################
41-
# Customize run time permissions for the app here
42-
#################################################
43-
self.permissions = [Permission.CAMERA, Permission.RECORD_AUDIO]
44-
if api_version < 29:
45-
self.permissions.append(Permission.WRITE_EXTERNAL_STORAGE)
46-
#################################################
47-
4840
self.permission_dialog_count = 0
4941
self.start_app = start_app
5042
if platform == 'android':
43+
#################################################
44+
# Customize run time permissions for the app here
45+
#################################################
46+
self.permissions = [Permission.CAMERA, Permission.RECORD_AUDIO]
47+
if api_version < 29:
48+
self.permissions.append(Permission.WRITE_EXTERNAL_STORAGE)
49+
#################################################
5150
self.permission_status([],[])
5251
elif self.start_app:
5352
self.start_app()

0 commit comments

Comments
 (0)