Skip to content

Commit

Permalink
Fix external links to open in browser
Browse files Browse the repository at this point in the history
This is a regression since p4a was upgraded to v2022.09.04 in ab80513.
Upstream p4a now requires the `mOpenExternalLinksInBrowser` boolean to
be set to `true`.

Fixes #133
  • Loading branch information
dbnicholson committed Jun 7, 2023
1 parent eac1525 commit b5e2a66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/kolibri_android/main_activity/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ class MainActivity(BaseActivity):
def __init__(self):
super().__init__()

# Tell PythonActivity to open external links in a browser.
PythonActivity.mOpenExternalLinksInBrowser = True

configure_webview(
Runnable(self._on_start_with_network),
Runnable(self._on_start_with_usb),
Expand Down

0 comments on commit b5e2a66

Please sign in to comment.