diff options
| author | YP3 Audiobook <noreply@example.invalid> | 2026-11-27 00:51:12 +0000 |
|---|---|---|
| committer | YP3 Audiobook <noreply@example.invalid> | 2026-11-27 00:51:12 +0000 |
| commit | 7a06b5d2d7ac329dc5cba794b019ba185b9b09e2 (patch) | |
| tree | fac537bb029a8532aadec97816292c3074b9e608 /patches/0009-yp3-no-Bookmark-saved-splash-for-automatic-bookmarks.patch | |
| parent | 4b670f7ac2635de6d6583d603d97f0bcfbec6733 (diff) | |
| download | yp3-audiobook-firmware-7a06b5d2d7ac329dc5cba794b019ba185b9b09e2.tar.gz | |
Release 1.1
- Hold Up/Down to keep changing the volume
- Pulling the SD card powers the player off instead of crashing; with no
card at power-on it says so and turns off
- Long M4B books load without freezing the controls, with a
"Loading book N%" screen
- The Center press that powers the player on no longer pauses the book
as it resumes (which also made it load twice)
- No "Bookmark saved" pause at power-off
- USB disk shows up right away while a book loads (flasher's
"NO USB DISK")
- tests/m4a: host test of the M4B index loader
Diffstat (limited to 'patches/0009-yp3-no-Bookmark-saved-splash-for-automatic-bookmarks.patch')
| -rw-r--r-- | patches/0009-yp3-no-Bookmark-saved-splash-for-automatic-bookmarks.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/patches/0009-yp3-no-Bookmark-saved-splash-for-automatic-bookmarks.patch b/patches/0009-yp3-no-Bookmark-saved-splash-for-automatic-bookmarks.patch new file mode 100644 index 0000000..6ef5ce4 --- /dev/null +++ b/patches/0009-yp3-no-Bookmark-saved-splash-for-automatic-bookmarks.patch @@ -0,0 +1,53 @@ +From 7da5965cf589e889e06c835b89c8ea029c5064b8 Mon Sep 17 00:00:00 2001 +From: YP3 Audiobook <noreply@example.invalid> +Date: Fri, 27 Nov 2026 00:17:17 +0000 +Subject: [PATCH 09/11] yp3: no "Bookmark saved" splash for automatic bookmarks + +Every automatic bookmark (power-off, stop, switching books) showed +"Bookmark saved" for a second, which held up the power-off. Those are +now saved quietly; a bookmark made from the menu still says so, and a +failure is still shown. + +--- + apps/bookmark.c | 11 ++++++++--- + 1 file changed, 8 insertions(+), 3 deletions(-) + +diff --git a/apps/bookmark.c b/apps/bookmark.c +index a6790c7f..ace8e203 100644 +--- a/apps/bookmark.c ++++ b/apps/bookmark.c +@@ -59,6 +59,7 @@ + #define BMARK_ASK_USER 0x1 + #define BMARK_CREATE_FILE 0x2 + #define BMARK_CHECK_IGNORE 0x4 ++#define BMARK_SHOW_SAVED 0x8 /* say "Bookmark saved": a manual bookmark */ + + /* Used to buffer bookmarks while displaying the bookmark list. */ + struct bookmark_list +@@ -681,8 +682,12 @@ static bool write_bookmark(unsigned int flags) + else + ret = false; + +- splash(HZ, ret ? ID2P(LANG_BOOKMARK_CREATE_SUCCESS) +- : ID2P(LANG_BOOKMARK_CREATE_FAILURE)); ++ /* Automatic bookmarks (power-off, stop, another book) are saved ++ quietly: the splash held the power-off for a second each time. ++ A failure is still shown. */ ++ if (!ret || (flags & BMARK_SHOW_SAVED)) ++ splash(HZ, ret ? ID2P(LANG_BOOKMARK_CREATE_SUCCESS) ++ : ID2P(LANG_BOOKMARK_CREATE_FAILURE)); + + return ret; + } +@@ -1202,7 +1207,7 @@ bool bookmark_create_menu(void) + if (!bookmark_is_bookmarkable_state()) + save_playlist_screen(NULL); + +- return write_bookmark(BMARK_CREATE_FILE); ++ return write_bookmark(BMARK_CREATE_FILE | BMARK_SHOW_SAVED); + } + /* ----------------------------------------------------------------------- */ + /* This function acts as the load interface from the context menu. */ +-- +2.56.1 + |
