Skip to content

[pull] main from ankidroid:main#764

Merged
pull[bot] merged 4 commits intobkzhn:mainfrom
ankidroid:main
Mar 24, 2026
Merged

[pull] main from ankidroid:main#764
pull[bot] merged 4 commits intobkzhn:mainfrom
ankidroid:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Mar 24, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* flagItemIds had a race condition

Fixes 20464

Assisted-by: Claude Opus 4.6
 Diagnostics
on 'Delete notes': flowOfCardsUpdated was emitted and
 opExecuted was called, causing a double call to:

* cardsAdapter.notifyDataSetChanged()
* refreshBrowserUI()

flowOfCardsUpdated was all that was necessary

Assisted-by: Claude Opus 4.6
  Initial diagnostic as an incorrect suggestion for a fix of 20556
  Initial validation that the double call was no longer necessary
   I confirmed
  Some of the unit tests, all refactored
  Some automatic refactoring: extracting ensureOpWithHandler
  ensureOpWithHandler impl, with a little refactoring from me
A crash occurred if `cardIdToBeScrolledTo` was deleted in NOTES mode

* The ID was not validated
* The ID was not removed after a scroll

Optimization:
Don't call `viewModelScope.launch { searchJob?.join() }`
if there's nothing to be done

Fixes 20556

Introduced in b825f75

Assisted-by: Claude Opus 4.6
 Diagnostics, some bad unit tests
 90% of this is mine
* Fixed IDE warnings
* Moved non-test methods outside the test class
@pull pull bot locked and limited conversation to collaborators Mar 24, 2026
@pull pull bot added the ⤵️ pull label Mar 24, 2026
@pull pull bot merged commit 283ff6f into bkzhn:main Mar 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant