super-productivity/android/app
Johannes Millan 6c45246750 fix(android): prevent WebView white screen on resume
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.
2026-06-10 20:39:23 +02:00
..
src fix(android): prevent WebView white screen on resume 2026-06-10 20:39:23 +02:00
.gitignore ____MERGING SUPER PRODUCTIVITY ANDROID ____ 2024-10-11 14:11:23 +02:00
app_config.properties ____MERGING SUPER PRODUCTIVITY ANDROID ____ 2024-10-11 14:11:23 +02:00
build.gradle 18.9.1 2026-06-05 22:45:35 +02:00
capacitor.build.gradle build(android): register edge-to-edge support plugin in gradle 2026-05-28 23:54:51 +02:00
config.gradle ____MERGING SUPER PRODUCTIVITY ANDROID ____ 2024-10-11 14:11:23 +02:00
google.properties ____MERGING SUPER PRODUCTIVITY ANDROID ____ 2024-10-11 14:11:23 +02:00
proguard-rules.pro feat(droid): background sync notifications for android 2026-03-20 10:24:02 +01:00