Skip to content

Commit

Permalink
Configure PythonActivity to open external links in a browser
Browse files Browse the repository at this point in the history
A recent change to python-for-android requires that we set the
activity's mOpenExternalLinksInBrowser attribute to true.

Closes #133
  • Loading branch information
dylanmccall committed Jun 7, 2023
1 parent eac1525 commit 0b60340
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/java/org/learningequality/KolibriAndroidHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public void setAppKeyCookie(String url, String appKey) {
public void configure(final Runnable startWithNetwork, final Runnable startWithUSB, final Runnable loadingReady) {
Log.i(TAG, "KolibriAndroidHelper configure");

mActivity.mOpenExternalLinksInBrowser = true;

mLoadingWebView.setWebViewClient(new WebViewClient() {
private boolean mInWelcome = false;

Expand Down

0 comments on commit 0b60340

Please sign in to comment.