SimonHalvdansson / Harmonic-HN

Modern Android client for Hacker News

Home Page:https://play.google.com/store/apps/details?id=com.simon.harmonichackernews

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integrated WebView blank after unfolding

daguej opened this issue · comments

On my Pixel Fold, when I open an item and view the page in the integrated WebView, then unfold the device, the view goes blank and appears to be stuck in a loading state.

eg:

Screenshot_20231129-131130Screenshot_20231129-131303

The page will never load. Clicking the refresh button does not work. The only way to see the content is to go back to the main list (which in a separate bug, does not maintain its scroll position) and re-open the item.

This bug does not reproduce 100% of the time. From a little experimentation, it seems like the timing of unfolding matters: if you unfold immediately after opening an item, the content is usually visible, but if you wait a few seconds (perhaps because you started reading) then unfold, then the view is almost always blank.

This might be related to a very non-well defined issue - the WebView often stops loading at 70% progress for no apparent reason. Due to the issue you linked, unfolding means the WebView has to reload so it might just be failing to load as it sometimes does randomly.

FWIW, I've never noticed the WebView get stuck at 70% in any situation other than after an unfold.

Okay interesting, I will keep this issue separate in that case