iOS: folded Duo opens Now Playing (no animation) when leaving while playing, so it returns on it; build 55
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1604a6b3e3
commit
5959c8a347
2 files changed
+21
-3
No files matched your search
@@ -142,10 +142,28 @@ final class Ui {
|
|||||||
/// fold), so the lock only changes once a reading has held for a moment. Other iPhones turn freely.
|
/// fold), so the lock only changes once a reading has held for a moment. Other iPhones turn freely.
|
||||||
private var lockGen = 0
|
private var lockGen = 0
|
||||||
|
|
||||||
func resumed() { lockOrientation() }
|
func resumed() {
|
||||||
|
lockOrientation()
|
||||||
|
if away { showPlayingFolded() }
|
||||||
|
away = false
|
||||||
|
}
|
||||||
|
|
||||||
/// Leaves the lock as it is: freeing it let iOS turn the window while audio kept the app alive.
|
/// Leaves the lock as it is: freeing it let iOS turn the window while audio kept the app alive.
|
||||||
func backgrounded() {}
|
/// Folded with something playing, Now Playing goes up now so the app (and the snapshot iOS
|
||||||
|
/// shows on return) comes back on it instead of the library.
|
||||||
|
func backgrounded() {
|
||||||
|
away = true
|
||||||
|
showPlayingFolded()
|
||||||
|
}
|
||||||
|
|
||||||
|
private var away = false
|
||||||
|
|
||||||
|
private func showPlayingFolded() {
|
||||||
|
guard folded, !nowPlayingOpen, AppGraph.shared.playback.current != nil else { return }
|
||||||
|
var t = Transaction()
|
||||||
|
t.disablesAnimations = true
|
||||||
|
withTransaction(t) { nowPlayingOpen = true }
|
||||||
|
}
|
||||||
|
|
||||||
private func lockOrientation() {
|
private func lockOrientation() {
|
||||||
guard duo || split || unfolded else { Orientation.lock(.allButUpsideDown); return }
|
guard duo || split || unfolded else { Orientation.lock(.allButUpsideDown); return }
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ settings:
|
|||||||
# iOS needs a plain number for the bundle version; the label is what the app and releases show.
|
# iOS needs a plain number for the bundle version; the label is what the app and releases show.
|
||||||
MARKETING_VERSION: "0.10.1"
|
MARKETING_VERSION: "0.10.1"
|
||||||
VERSION_LABEL: "0.10.1"
|
VERSION_LABEL: "0.10.1"
|
||||||
CURRENT_PROJECT_VERSION: "54"
|
CURRENT_PROJECT_VERSION: "55"
|
||||||
# Dev builds override these (build-ipa.sh dev) so they install next to the release app.
|
# Dev builds override these (build-ipa.sh dev) so they install next to the release app.
|
||||||
APP_ID: org.cdnutter.stemify
|
APP_ID: org.cdnutter.stemify
|
||||||
APP_NAME: Stemify
|
APP_NAME: Stemify
|
||||||
|
|||||||
Reference in new issue
Block a user