Skip to content

Release v1.30: Up next, shared characters and refreshed stats - #40

Merged
M1sterMo merged 66 commits into
mainfrom
v1.30
Nov 15, 2026
Merged

M1sterMo merged 66 commits into
mainfrom
v1.30

Conversation

@M1sterMo

Copy link
Copy Markdown
Owner

Changes

  • Up next: queue books to play one after another from the book menu. Reorder them in the queue view or by dragging on the library's Up next shelf. A book leaves the queue only when it starts playing, not when it is opened.
  • Characters: character lists are shared across a series, with a "Book N" tag. Saving a series keeps books whose files are missing in the series.
  • Listening stats: a refreshed page and a sheet for each finished book. Books marked completed get a finish date, which can be changed.
  • Library: sort by length; hold and drag to reorder or move books; add, search, filter and settings buttons in the top bar; time left on each tile.
  • Player: book progress and time left under the title; the position slider above the chapter switcher; tap the chapter length for a countdown (remembered and backed up); a book-style cover; a glow in the cover's colours.
  • Also: a restyled widget, simpler adding of books, light/dark/system theme with colour choices, and the M4B chapter fix from Fix M4B chapters on noncontiguous tracks and packed samples #36.
  • Release hygiene: F-Droid notes are cut to four lines and the release workflow now rejects more. The README's per-release sections are replaced by one feature list. The signed release build skips the build cache, as F-Droid's rebuild does.

Verification

  • 728 JVM unit tests passed.
  • All 20 on-device tests passed on the managed emulator, beyond CI's critical four classes: playback, sleep timer, search, chapters, book editor, library, shelves, series and Android Auto.
  • Kotlin formatting, Android lint, the debug build and screenshot validation passed.
  • F-Droid reproducibility: two clean clones were built with --no-build-cache, one with F-Droid's prebuild steps applied. The APKs were byte-identical.
  • The signing certificate matches the recipe's AllowedAPKSigningKeys. F-Droid's update regex reads 1.30 / 5408023.
  • The release classpath has no non-free dependencies. The only new libraries are androidx.palette and lifecycle-runtime-compose.
  • Signed 1.30 builds were installed over the existing app on a physical phone without clearing data, and tested by the maintainer.
  • Each change was checked on an emulator and given an independent review; all real findings were fixed.

Release gate

  • Wait for GitHub CI before merging.
  • Merge with a merge commit, not a squash, so Fix M4B chapters on noncontiguous tracks and packed samples #36 is recorded as merged with its contributor's authorship.
  • Version name is 1.30; version code is 5408023.
  • Preserve the existing signing identity and the app-libre-release-signed.apk asset name for F-Droid.
  • Tag v1.30 and publish only after merge approval. The release workflow creates a draft, which must be published for F-Droid to fetch the binary.

This PR does not create a release or publish a tag.

lecrackzor and others added 30 commits October 29, 2026 12:49
lintKotlin failed on the PR head: .editorconfig forces multiline signatures
at two or more parameters and single-line class headers for one parameter.
Output of ./gradlew :core:scanner:formatKotlin, no logic changes.
…ions per sample

- Bound the total number of samples across all chunks instead of each
  chunk alone, so a corrupt stsc/stco pair cannot make the processor
  loop for billions of samples.
- Restore the early return for a track without an stts table that the
  rewrite dropped; without it every title was read only to land at 0 ms.
- Replace the general run-consumption arithmetic with a one-sample
  cursor, since every call now consumes exactly one sample.
- Log truncated titles instead of returning an empty name silently, and
  drop the unused ParsableByteArray import.
- Reset the current track id when the parser enters a trak, so a trak
  without a readable tkhd no longer writes its tables over the previous
  track's entry.
- Check that declared entry counts fit the remaining payload before
  reading the stco, co64, stsc, stts and stsz tables; a bad count used
  to read stale bytes from the shared scratch buffer.
- Let tkhd only name the current track; table visitors already create
  the entry on first use.
- Keep the Int.MAX_VALUE payload bound in the parser alone and let
  AtomVisitor.consumes() default to true.
- Pass the length reported by DataSource.open() to the extractor input
  so a size-0 top-level box can resolve against the file length.
Scanner
- Scan each book under an author folder once instead of once per sibling
  (Voice #3720).
- Close the MetadataRetriever after looking for an embedded cover
  (Voice #3850).
- Prefer an image named cover, then front, then folder when a book folder
  has several (Voice #3940).
- Remove a book from the library when its folder still lists entries but
  holds no audio files (Voice #4168). Narrower than upstream: an empty or
  unreadable folder keeps its book, because that is what a dropped
  permission or an unmounted volume looks like.

Playback
- Name Media3's default commands in onConnect instead of taking them from
  super, which Media3 1.11 turns into a placeholder without commands
  (Voice #4181). No change on 1.10.1.
- Connect to the playback service again after the first connection failed
  instead of leaving the controls dead (Voice #4102).

Library
- Delete a book's files off the main thread (Voice #3898).
- Look for new books when the app comes back to the foreground, subject to
  the existing entry-scan cooldown (Voice #4147).
Marking a book completed only moved its position to the end, so stats had
no completion to date: the book showed "Most recent completion: Not
available", "Completed: At least once", and sank to the bottom of the
Finished list.

Marking completed now records a zero-length MarkedCompleted session. It
counts as a completion everywhere completions are read and is left out of
every listening-time metric and the listening log. Marking the same book
completed again on the same day records nothing, so an accidental play and
re-mark is not a second finish. Books marked before this change fall back
to their last-played date, the date the library already shows.
Settings: Listening stats moves to the top, beside Appearance.

Stats page: Recently becomes three tiles; the Finished list moves up under
it, grouped by year, each book showing its finish date, hours and days from
first listen to finish; Records becomes a grid of tiles; the total line
counts books finished.

Book stats: finish date under the title, tiles for listening time, days
start to finish and sessions, a day-by-day chart for listens of up to 60
days, then longest and average session, speed, first listen and times
completed. An unknown completion count is left out instead of shown as
"At least once". A hand-marked or inferred finish date can be changed;
one reached by listening stays as recorded.

Also from review of the finish-date fix: un-marking a book on the day it
was marked removes the mark, so a mistaken tap can be undone; and books
marked before marks existed are dated by the finished copy's last listen
rather than lastPlayedAt, which moves on every position save. The library
uses the same rule so both screens agree.
The elapsed and total labels beside the chapter slider now show listening
time (audio time divided by playback speed), like the library's remaining
time. The slider position and seeking stay on raw audio positions.
A line above the chapter slider shows how much of the book is completed
and how much listening time is left at the current playback speed.
When the library layout is set to Books, the player draws its cover as the
same 2:3 jacket the library uses, cropping square artwork to fill. The
jacket drawing moves to core/ui so both screens share it.
The add screen leads with one Choose a folder button and keeps adding a
single file as a quiet text button. After picking a folder, a review
screen guesses how the folder is organised and lists the books it would
add. Change how books are found opens the three ways in plain words, each
with its book count and a Looks like yours badge on the guess. Adapted
from upstream Voice, without its server, help card and survey parts.
A soft shadow tinted with a vibrant colour sampled from the cover (via
androidx.palette) sits behind the player artwork, rising from 4dp while
paused to 28dp while playing. Books without a cover glow in the theme's
primary colour. Cover takes a glow flag so a setting can turn it off.
- Un-marking a book only removes a completion mark made in the last 15
  minutes. Later, it is a re-listen starting and the finish stays.
- The finish-date picker cannot go back past a finish reached by
  listening, which would otherwise silently win as the latest finish.
- Tile values shrink to fit instead of being cut off on narrow phones or
  large font sizes.
- "Start to finish" and the day-by-day chart measure the latest read, not
  the span since the very first listen; the chart covers up to 31 days.
- Library rows read "17:34:39 left" instead of a bare time.
- The top bar shows Add audiobooks, Search, Filter and Settings. The
  overflow menu only remains while selecting or organising, where it has
  actions; Organise library moves into each shelf's menu.
- Hold a book or series and move it: drop it on another shelf to move it
  there, or on another book of a shelf kept in your own order to take its
  place. Sorted or filtered shelves never reorder from a drag. Holding and
  letting go without moving still opens the book's menu.
Rounded surface with the cover on the left, then title, chapter name, a
thin book-progress bar and a row of round buttons: tonal replay buttons
around a filled play/pause in the primary colour. The glyphs are vector
drawables instead of the old bitmaps.

Each widget gains two options: cover shape (Square or Book, defaulting to
the library layout) and previous/next chapter buttons (off by default).
The widget now also refreshes on each whole percent of book progress, and
new widgets default to two rows high.
The library's + skips the Audiobook folders list and opens the screen for
choosing a folder or file. The folders list stays reachable from Settings.
Characters gain a nullable seriesId (DB 72, backup schema 8). A book in a
series reads and edits its series' list; standalone books keep their own.
Grouping merges members' lists, collapsing exact duplicates; a book leaving
a series takes a full copy, and a dissolved series' members each get one.
The migration merges lists of books already grouped. Restores carry the
series ownership and merge lists from older backups.

The character list shows which book in the series each character was added
in, and names the series it is shared across.
Two new shelf sorts, Shortest first and Longest first, by total audio
length. A series stack counts as all its books together. While a shelf is
sorted by length its rows show each book's full length, the number the
order follows, instead of the time left.
The platform elevation shadow barely carries a colour, so on a device the
glow was close to invisible. Draw it as a coloured drop shadow instead,
fading up while playing.
Mistermo added 28 commits November 10, 2026 15:12
Resumed at its end, a finished book in the queue would finish at once and
the queue would skip on. Queueing it means listening again.
…estores

A character now records its owner (ownerBookId or seriesId) apart from the
book it was added in (bookId), so copies taken when a book leaves a series
keep their origin chips.

Undo puts character lists back exactly as before the change, and is refused
once a list it would restore has been edited, instead of merging again.

Restores insert a character only if the list it lands in does not already
hold it (same list, origin, name and creation time), after the organisation
is restored. OS-wipe restores map characters through all matched ids and move
characters kept under a missing book's old id once a retry finds the book.
Author folders holding several whole-book files are now guessed as
authors, and m4b files named like parts (Chapter 01, Part 2, 07) count as
chapters of one book. The folder is looked through once in the retained
view model, stops when the screen is left, and leaves out excluded books
so the count matches what the scan adds.
The empty review opens the folder picker itself, the back arrows are
labelled Back, and the add screen scrolls so its buttons stay reachable
in landscape or with a large font.
Lazy lists keep the first visible row in place, so a shelf inserted above
it landed just off screen. Scroll to it when the list is near the top.
Read the theme mode and colour synchronously at app start so no activity
starts in the wrong night mode, and seed VoiceTheme with the stored
values instead of defaults so a fixed palette doesn't flash on creation
or rotation.
Widgets without a chosen cover shape follow the library layout, so they
now redraw when that setting changes.

A widget shorter than the 12dp padding allows (older ones could be resized
down to 48dp) gets less padding, evenly, so the 40dp buttons and the cover
fit whole. The gap above the buttons moves into the text block, which
gives way first and is hidden as a whole when the title doesn't fit.
The system draws the launch splash before the app runs, so a dark app on a
light phone opened on a white splash. On Android 12+ tell the system the
app's night mode, which the splash then follows.
A chapter timer can run on into the next book in Up next, where the same
chapter index and start reappear and were skipped as already counted.
The repository's get() also returns inactive books, so a book whose folder
was removed still played, while Up next no longer showed it to remove.
The book's end also counts per book for a chapter timer.
An open player stayed on the finished book: play made it current again,
skipping the queue, and its controls acted on the new book. Opening a
book now makes it current from the library, and the open player moves to
whatever book is current, also after process death.
The editor listed missing books the shelf never shows, so a stale copy of
book 1 made the stack's cover the second book. Saving keeps such books at
the end of the series so they rejoin it when they return.
Opening a queued book made it current, which removed it from the queue and
hid Add to Up next for it. The queue now drops the book the player has
loaded once it plays, the menu hides only for the playing book, and the
book menu opens with its own items rather than the previous book's.
An open but unplayed queued book showed as now playing and left the
sheet's list, so it could not be moved. The sheet now lists the whole
queue, and holding a book on the library's Up next shelf drags it into a
new place. Current and Up next no longer take or send books between
shelves, and only the held tile lifts when a book shows twice.
F-Droid shows every line of a release's notes, so v1.30's are cut to four
and the Release workflow now rejects more. The README's per-release
sections become one feature list that links to the changelog.
The controls now read position, book progress, chapter, then play, in
both portrait and landscape, from one shared block.
How far through the whole book you are reads as a subtitle to its name,
leaving the controls at the bottom for the chapter and playback.
Tapping the chapter's length switches it to the time left in the chapter,
and back. Under the large title, book time left sits at the right edge.
The choice is kept between sessions and travels with settings backups.
The tap target is now 48dp, TalkBack reads the time once with what a tap
does, the countdown rounds up so elapsed and remaining add up to the
chapter's length, and the landscape subtitle stays on one line. Smoke
tests open Settings from its own button, and the changelog covers the
final v1.30 player and queue changes.
Organising now starts from a shelf's menu, and the book menu opens once
its items are ready, so the tests reach both the way listeners do. The
release build skips the build cache, like F-Droid's rebuild.
@M1sterMo
M1sterMo merged commit 9dd174b into main Nov 15, 2026
4 checks passed
@M1sterMo
M1sterMo deleted the v1.30 branch November 15, 2026 02:51
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.

2 participants