Skip to content

fix: restricted mark-as-read-on-scroll to items leaving at the top - #1278

Merged
spacecowboy merged 1 commit into
spacecowboy:masterfrom
uplansible:fix/mark-as-read-only-when-scrolled-off-top
Oct 20, 2026
Merged

spacecowboy merged 1 commit into
spacecowboy:masterfrom
uplansible:fix/mark-as-read-only-when-scrolled-off-top

Conversation

@uplansible

@uplansible uplansible commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

Items which left the viewport at the bottom - by scrolling back up, or by being pushed down when new items were synced in above them - were marked as read without ever having been scrolled past.

trackVisibility now reports whether an item left at the top, and only those items are marked as read. Also removed the unreachable filter.unread branch, as the unread filter is always enabled.

Testing

Ran the fix as my daily reader on a Pixel 9 Pro (GrapheneOS, fdroid release build) since late August, updated to the current revision in mid-October. Items scrolled back down past the bottom edge, and items pushed down by a background sync, stayed unread; items scrolled past the top were marked as read as before.

Checklist

  • Ran ./gradlew ktlintFormat and committed the result
  • If the Room schema changed: added a MIGRATION_N_N+1 in AppDatabase.kt N/A, no schema change
  • If the Room schema changed: added a migration test in app/src/androidTest/.../db/room/ N/A, no schema change

Screenshots (if UI change)

No visual change.

Items which left the viewport at the bottom - by scrolling back up, or
by being pushed down when new items were synced in above them - were
marked as read without ever having been scrolled past.

trackVisibility now reports whether an item left at the top, and only
those items are marked as read. Also removed the unreachable
filter.unread branch, as the unread filter is always enabled.
@spacecowboy

Copy link
Copy Markdown
Owner

Thanks @uplansible . LGTM

@spacecowboy
spacecowboy merged commit 57502af into spacecowboy:master Oct 20, 2026
12 checks passed
@uplansible
uplansible deleted the fix/mark-as-read-only-when-scrolled-off-top branch October 22, 2026 13:53
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.

3 participants