Android flickering fix

* Removed permission request for external storage (not functional since API level 30)
* Fixed flickering on android devices (caused by the above)
This commit is contained in:
LoafyLemon 2023-07-05 17:06:58 +01:00
parent 69dca4ffcd
commit 37d481ea08
3 changed files with 4 additions and 3 deletions

View File

@ -278,7 +278,7 @@ screen navigation(title=None):
textbutton _("Preferences") action ShowMenu("preferences") sensitive is_sensitive
if main_menu:
textbutton _("Mods") sensitive (bool(mods_list) and is_sensitive) action If(AskPermission("android.permission.WRITE_EXTERNAL_STORAGE"), ShowMenu("mods"), Function(renpy.notify, "Please grant storage permissions to enable modding functionality."))
textbutton _("Mods") sensitive (bool(mods_list) and is_sensitive) action ShowMenu("mods")
textbutton _("Credits") action Jump("credits") sensitive is_sensitive
if not renpy.mobile:
textbutton _("Quit") action Quit(confirm=not main_menu) sensitive is_sensitive

View File

@ -89,4 +89,4 @@ init python:
if not renpy.android:
return True
return renpy.android and (renpy.check_permission(self.name) or renpy.request_permission(self.name))
return (renpy.check_permission(self.name) or renpy.request_permission(self.name))

View File

@ -147,6 +147,7 @@ define config.profile = False
init python:
build.name = "WTS"
build.directory_name = f"WTS-{config.version}"
build.include_update = True
build.include_old_themes = False
build.exclude_empty_directories = True
@ -185,4 +186,4 @@ init python:
build.classify("game/saves/**", None)
build.classify("game/mods/**", None)
build.android_permissions = ["android.permission.WRITE_EXTERNAL_STORAGE"]
# build.android_permissions = ["android.permission.WRITE_EXTERNAL_STORAGE"] # Not functional since API level 30+