iOS: folded Duo keeps portrait lock in background (no landscape flash on reopen while playing); build 53

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-11-23 09:33:39 -08:00
1 parent 452ed6f362
commit 7dddc25656
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -150,7 +150,13 @@ final class Ui {
}
}
func backgrounded() { Orientation.lock(.allButUpsideDown) }
/// Folded stays locked upright: while audio plays the app lives on in the background and iOS
/// would turn the free window with the phone, so it came back sideways. Unfolding meanwhile is
/// still caught on return (upright unfolded marks the phone unfolded and turns it).
/// Unfolded frees rotation, so a phone folded meanwhile isn't held in landscape.
func backgrounded() {
if folded { Orientation.lock(.portrait) } else { Orientation.lock(.allButUpsideDown) }
}
private func lockOrientation() {
if split || unfolded { Orientation.lock(.landscape); return }