🤖 Enhancements to WebView Lifecycle Management in MainActivity#364
Merged
doubleangels merged 26 commits intodevfrom Jan 21, 2025
Merged
Conversation
Update documentation
Change to new sponsor link
Add AuthorActivity and PermissionActivity as well as associated code
Fix incorrect BuildConfig input
General code cleanup
Fix #259 and slight refactor
New build for release
Update dependencies and translations
Dependency updates and move to native dark mode
Make sure translations are up to date
Fix Crowdin action
Fix Crowdin action
New build for release
Update dependencies
Roll back update to gradle build tools as it is unsupported in this v…
Add mobile replay support to Sentry
Suppress javascript warning
Removed dynamic coloring to closer match native dark theme
Fix for users not staying logged in
Drop support for devices under Android 12L
Roll back builds to Java 17
Update contributing guidelines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
👋 Hi there! This PR was automatically generated by Autofix 🤖
This fix was triggered by DoubleAngels
Fixes NEXTDNS-MANAGER-1BT
This update introduces improved lifecycle management for the WebView in MainActivity. A new method, cleanupWebView, has been added to handle the proper cleanup of the WebView during onDestroy, onLowMemory, and onTrimMemory events. The onPause and onResume methods are updated to properly manage WebView states. Additionally, a flag is introduced to track whether the WebView has been initialized, ensuring that cleanup operations are only performed if necessary. The setupWebViewForActivity method is also modified to check for WebView initialization before proceeding.
If you have any questions or feedback for the Sentry team about this fix, please email autofix@sentry.io with the Run ID: 3406.