mirror of
https://github.com/markqvist/Sideband.git
synced 2025-12-22 06:07:06 +00:00
Render toast component in-application on all platforms
This commit is contained in:
@@ -2,10 +2,14 @@ __all__ = ("toast",)
|
|||||||
|
|
||||||
from kivy.utils import platform
|
from kivy.utils import platform
|
||||||
|
|
||||||
|
use_native_toast = False
|
||||||
|
|
||||||
if platform == "android":
|
if platform == "android":
|
||||||
try:
|
if use_native_toast:
|
||||||
from .androidtoast import toast
|
try: from .androidtoast import toast
|
||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError: from .kivytoast import toast
|
||||||
|
else:
|
||||||
from .kivytoast import toast
|
from .kivytoast import toast
|
||||||
|
|
||||||
else:
|
else:
|
||||||
from .kivytoast import toast
|
from .kivytoast import toast
|
||||||
|
|||||||
Reference in New Issue
Block a user