Skip to content

Make pdf edge-to-edge and add logic to dodge window insets + test adjustments#647

Merged
thestinger merged 5 commits into
GrapheneOS:mainfrom
inthewaves:insets-fix
May 8, 2026
Merged

Make pdf edge-to-edge and add logic to dodge window insets + test adjustments#647
thestinger merged 5 commits into
GrapheneOS:mainfrom
inthewaves:insets-fix

Conversation

@inthewaves
Copy link
Copy Markdown
Member

Supersedes #588

hunterstich and others added 5 commits May 7, 2026 18:50
Canvas bitmap dimensions are capped by pdf.js render limits, so they can remain unchanged even when
the displayed page zooms. Assert CSS page dimensions instead because they represent the visible page
size users see.

Keep zoom-out coverage gesture-driven by constraining UiAutomator pinches to the visible PDF content
area. Edge-to-edge makes the WebView bounds extend behind the app bar and system bars, and
UiObject2.pinchClose starts from the outer corners of those bounds. Zooming into these bounds
results in no zoom happening.
JS bridge isn't guaranteed to be on main thread, but these values are written on main thread. (Note
that other fields in the PdfViewer class with similar issues are marked as volatile in a different PR)
@thestinger thestinger merged commit c7a8569 into GrapheneOS:main May 8, 2026
2 checks passed
@inthewaves inthewaves deleted the insets-fix branch May 8, 2026 02:14
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.

3 participants