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:
parent
62e94628be
commit
bcd44c8af6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user