Skip to content

fix: restore reader status bar ownership#682

Merged
everpcpc merged 2 commits intomainfrom
codex/fix-reader-status-bar-safe-area
Mar 21, 2026
Merged

fix: restore reader status bar ownership#682
everpcpc merged 2 commits intomainfrom
codex/fix-reader-status-bar-safe-area

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Problem

On iPad, if the reader was open with controls hidden and the app was backgrounded, restoring the app could leave the main UI in an incorrect safe-area state. After closing the reader, navigation toolbar buttons could overlap the status bar.

Approach

Move status bar ownership back into each reader so it follows the reader's own effective controls visibility, including local conditions such as zoom, loading, and error states. This removes the temporary overlay-shared controls state and the old preference bridge, while keeping the scene-phase recovery logic inside each reader.

Scope

  • Manage statusBarHidden directly in the DIVINA, EPUB, and PDF readers
  • Remove the shared controls visibility bridge from ReaderOverlay
  • Delete the obsolete ReaderControlsVisibilityPreference helper
  • Bump the build version to 376

Validation

  • make build-ios
  • make build-macos

Move status bar visibility back into each reader so it follows the local effective controls state instead of an overlay-shared mirror.

This removes the preference bridge and temporary shared UI state, keeps scene-phase recovery in each reader, and prevents iPad safe-area/status-bar regressions when reader controls are hidden and the app is backgrounded.
@everpcpc everpcpc merged commit fdb2383 into main Mar 21, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/fix-reader-status-bar-safe-area branch March 21, 2026 03:06
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