Fix: Adjust FAB position and fix animation snap-back (#21241)#21248
Fix: Adjust FAB position and fix animation snap-back (#21241)#21248vivek41-glitch wants to merge 4 commits into
Conversation
|
Snapshot diff report vs
All 4 changed screenshotsDeckPickerScreenshotTest
DeckPickerTabletScreenshotTest
|
|
thankyou! could you please revert to the original GitHub template? Also, add a screen recording for the changes you have done, your previous PRs also have the same pattern of removing the template and setting something new please stick to the one provided |
|
@criticalAY I've updated the PR description to follow the template. I will add the screen recording shortly. Sorry for the mistake! |
|
@criticalAY , actually I am having local build environment issues on Windows (AAPT2 daemon startup failed) and cannot generate a debug APK to record the fix. |
Screen.Recording.2026-06-10.231816.mp4@criticalAY, hear is recording , all fixes running properly , and that recording is bit lagging so ignore this and in real app , it is working great .ready for final review |
|
That video shows the collection in the "no cards" state, not what was reported |
|
@david-allison , got it 20260611-0130-46.7787009.mp4 |
|
That doesn't look correct |
WhatsApp.Video.2026-06-13.at.10.46.52.mp4@david-allison , please review this , and tell me if any chnages need in pr |
david-allison
left a comment
There was a problem hiding this comment.
The 'files changed' tab has a fair few changes which don't seem relevant
|
This also isn't fixed. See: #21241 (comment)
|
|
@david-allison Thanks for tracking down the real cause — makes sense that this traces back to #20964 rather than being a static margin issue. Since this looks like a race condition between the window insets listener and the FAB's layout-change listener (rather than something a margin tweak can fix), I don't want to guess at a fix blindly again. Could you point me toward the approach you'd want here — for example, should the recycler view padding update be deferred until after the FAB's padding is fully applied, or is there a different fix you had in mind? Happy to implement whatever direction you'd like, just want to make sure I'm fixing the actual race rather than masking it again. |
|
Please see our https://github.com/ankidroid/Anki-Android/blob/main/AI_POLICY.md You have more context, but it seems best to chain the layout dependency, maybe even defining the constraints in the code. |
|
okay , @david-allison , i got ur hint and now as u said i m going to do make the recyler view's pading update only happen after the fabs padding . |

Description
Fixes #21241
Changes
How to Test
Screenshots/Recordings
Before:
604942821-4045e6dd-abe0-4698-8afc-696168604750.mp4
After:
WhatsApp.Video.2026-06-13.at.10.46.52.mp4
Checklist