Skip to content

Commit

Permalink
Reinstate metered conection checking
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed May 10, 2024
1 parent d7fc8b9 commit d6174c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit d6174c9

Please sign in to comment.