Skip to content

fix(ui): keep the file list footer steady during sync - #18164

Open
teapotonmars wants to merge 1 commit into
nextcloud:masterfrom
teapotonmars:review/file-list-footer
Open

teapotonmars wants to merge 1 commit into
nextcloud:masterfrom
teapotonmars:review/file-list-footer

Conversation

@teapotonmars

Copy link
Copy Markdown

When syncing a subfolder from the file list, the count at the bottom can repeatedly fade out and back in even when it still reads “5 folders.” Each refresh sends RecyclerView a full change notification for the footer, which triggers the animation.

Use the file list’s existing rebind payload for the footer so RecyclerView updates the visible row in place. The adapter still recalculates the count on each refresh.

The regression test passed. It checks that refreshing the same directory sends the payload to the footer. To verify on a device, start syncing a subfolder and keep its parent open. The count should stay steady during sync and increase by one when you add a folder to the parent.

🖼️ Screenshots

🏚️ Before 🏡 After
The folder count pulses during repeated refreshes. The footer rebinds in place and displays the current count.

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Codex assisted with the fix, regression test, and PR description.

Assisted-by: Codex:GPT-6
Signed-off-by: Emma Liddell <emma@emmaliddell.com>

This branch has not been deployed

No deployments
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.

1 participant