Skip to content

Commit 9e9d6bb

Browse files
committed
keeping kivy stuff safe
1 parent 651e88d commit 9e9d6bb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

android_notify/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def get_activity_class_name():
1111
if not ACTIVITY_CLASS_NAME:
1212
try:
1313
from android import config
14-
ACTIVITY_CLASS_NAME = getattr(config, "JAVA_NAMESPACE", None)
14+
ACTIVITY_CLASS_NAME = config.JAVA_NAMESPACE
1515
except (ImportError, AttributeError):
1616
ACTIVITY_CLASS_NAME = 'org.kivy.android'
1717
return ACTIVITY_CLASS_NAME
@@ -139,7 +139,7 @@ def app_storage_path():
139139
return os.path.join(context.getFilesDir().getAbsolutePath(), 'flet')
140140
else:
141141
try:
142-
from android.storage import app_storage_path # type: ignore
143-
return app_storage_path()
142+
from android.storage import app_storage_path as kivy_app_storage_path # type: ignore
143+
return kivy_app_storage_path()
144144
except Exception as e:
145145
return './' # TODO return file main.py path (not android)

0 commit comments

Comments
 (0)