Skip to content

🤖 Enhancements to WebView Lifecycle Management in MainActivity#364

Merged
doubleangels merged 26 commits intodevfrom
autofix/enhancements-to-webview-lifecycle-management-in-mainactivity
Jan 21, 2025
Merged

🤖 Enhancements to WebView Lifecycle Management in MainActivity#364
doubleangels merged 26 commits intodevfrom
autofix/enhancements-to-webview-lifecycle-management-in-mainactivity

Conversation

@seer-by-sentry
Copy link
Copy Markdown
Contributor

👋 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.

Matt VerLee and others added 26 commits April 9, 2024 17:06
Change to new sponsor link
Add AuthorActivity and PermissionActivity as well as associated code
Fix incorrect BuildConfig input
Update dependencies and translations
Dependency updates and move to native dark mode
Make sure translations are up to date
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
@doubleangels doubleangels marked this pull request as ready for review January 21, 2025 20:57
@doubleangels doubleangels changed the base branch from main to dev January 21, 2025 20:57
@doubleangels doubleangels merged commit 2ff5a0d into dev Jan 21, 2025
@doubleangels doubleangels deleted the autofix/enhancements-to-webview-lifecycle-management-in-mainactivity branch January 21, 2025 21:47
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.

1 participant