Skip to content

Fix FAB visibility after SearchView dismissal on deck deletion#20797

Merged
criticalAY merged 1 commit intoankidroid:mainfrom
lukstbit:fix_fabVisibility
Apr 21, 2026
Merged

Fix FAB visibility after SearchView dismissal on deck deletion#20797
criticalAY merged 1 commit intoankidroid:mainfrom
lukstbit:fix_fabVisibility

Conversation

@lukstbit
Copy link
Copy Markdown
Member

Purpose / Description

A small fix for the following bug in DeckPicker:

Open toolbar SearchView -> FAB is hidden -> long click deck -> delete deck -> Info SnackBar appears, SearchView is closed, at this point FAB is still missing(and remains missing until search is used)

Note: similar issue with SearchView opened and trying to undo something, fab goes missing. This is more difficult(we undo, show a snackbar while the undo also triggers an opExecuted call and a menu refresh again) to fix and also less likely to happen vs the deck deletion situation above.

How Has This Been Tested?

Ran tests, checked the bug behavior.

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

Fixes bug in DeckPicker:
open toolbar SearchView -> FAB is hidden -> long click deck ->
delete deck -> Info SnackBar appears, SearchView is closed, FAB is still missing

Deleting the deck would refresh the menu so the SearchView gets
rebuilt and its listeners(which handle the FAB) would not get triggered.

The fix sets the the FAB as visible when the delete deck handler is hit, just
before the SnackBar is requested.
@david-allison david-allison added Needs Second Approval Has one approval, one more approval to merge and removed Needs Review labels Apr 20, 2026
Copy link
Copy Markdown
Contributor

@criticalAY criticalAY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this one, thanks!

@criticalAY criticalAY added Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) and removed Needs Second Approval Has one approval, one more approval to merge labels Apr 21, 2026
@criticalAY criticalAY added this pull request to the merge queue Apr 21, 2026
Merged via the queue into ankidroid:main with commit 3da1cab Apr 21, 2026
19 checks passed
@github-actions github-actions bot added this to the 2.24 release milestone Apr 21, 2026
@github-actions github-actions bot removed the Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) label Apr 21, 2026
@lukstbit lukstbit deleted the fix_fabVisibility branch April 21, 2026 05:00
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