0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00

checkedCardIds for cleanup

This commit is contained in:
dorrin-sot 2022-05-29 16:09:06 +04:30 committed by Arthur Milchior
parent 62e94628be
commit bcd44c8af6

View File

@ -2662,14 +2662,7 @@ open class CardBrowser : NavigationDrawerActivity(), SubtitleListener, DeckSelec
@get:VisibleForTesting(otherwise = VisibleForTesting.NONE)
val checkedCardIds: List<Long>
get() {
val cardIds: MutableList<Long> = java.util.ArrayList(mCheckedCards.size)
for (card in mCheckedCards) {
val id = card.id
cardIds.add(id)
}
return cardIds
}
get() = mCheckedCards.map { c -> c.id }
// should only be called from changeDeck()
@VisibleForTesting(otherwise = VisibleForTesting.NONE)