diff --git a/src/main.py b/src/main.py index 5f6ad08..12f9dd8 100644 --- a/src/main.py +++ b/src/main.py @@ -3,6 +3,7 @@ import initialization # noqa: F401 keep this first, to ensure we're set up for other imports from android_utils import get_dummy_user_name +from android_utils import is_active_network_metered from android_utils import share_by_intent from jnius import autoclass from kolibri.main import enable_plugin @@ -15,8 +16,6 @@ from magicbus.plugins import SimplePlugin from runnable import Runnable -# from android_utils import is_active_network_metered - PythonActivity = autoclass("org.kivy.android.PythonActivity") @@ -57,7 +56,7 @@ def SERVING(self, port): initialize() interface.register(share_file=share_by_intent) -# interface.register(check_is_metered=is_active_network_metered) +interface.register(check_is_metered=is_active_network_metered) interface.register(get_os_user=os_user) kolibri_bus = BaseKolibriProcessBus()