Skip to content

Conversation

@rtibbles
Copy link
Member

@rtibbles rtibbles commented Aug 9, 2022

Backport #116

Requires this additional commit in PyEverywhere: learningequality/pyeverywhere@b247cc6

@rtibbles rtibbles requested a review from jamalex August 9, 2022 18:42
Copy link
Member

@jamalex jamalex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me at first pass!

PythonActivity = autoclass("org.kivy.android.PythonActivity")
FullScreen = autoclass("org.learningequality.FullScreen")
configureWebview = Runnable(FullScreen.configureWebview)
configureWebview(PythonActivity.mActivity)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This provides a great example for adding custom Java and tweaking the webview behavior without having to hack the P4A bootstrap. 🎆

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, much thanks to @danigm for creating such a clean intervention! May help us to avoid having to fork P4A if we can follow this pattern more closely.

@jamalex jamalex merged commit 92dd435 into master Aug 11, 2022
@jamalex jamalex deleted the full_screen_backport branch August 11, 2022 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants