mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-21 02:20:12 +00:00
Stop forcing LAYER_TYPE_HARDWARE on the WebView in the shared WebHelper.setupView() (used by both CapacitorMainActivity and the legacy FullscreenActivity). The forced view-level hardware layer renders the whole WebView into an off-screen GPU texture that can be released when the app is backgrounded and is not always repainted on resume — the likely cause of the blank/white screen reported after switching apps and returning. GPU acceleration is unaffected: it comes from android:hardwareAccelerated="true" in the manifest, not from this call. The original setLayerType(LAYER_TYPE_HARDWARE) was added in 2021's "feat: enable hardware acceleration" commit, likely under the misconception that it was required to enable acceleration. Note: the bug is device/GPU-specific and not locally reproducible, so this is unverified hardening rather than a confirmed fix. The competing cause — the WebView renderer process being killed under memory pressure (no onRenderProcessGone handler) — is a separate, higher-risk follow-up. |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| app_config.properties | ||
| build.gradle | ||
| capacitor.build.gradle | ||
| config.gradle | ||
| google.properties | ||
| proguard-rules.pro | ||