Skip to content

Commit

Permalink
refactor: rename isDeckAndSubdeckEmpty to areDeckAndSubdecksEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
devyk100 committed Mar 4, 2025
1 parent e93b70b commit 1eb693e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2168,7 +2168,7 @@ open class DeckPicker :
return
}

if (isDeckAndSubdeckEmpty(did)) {
if (areDeckAndSubdecksEmpty(did)) {
showEmptyDeckSnackbar()
updateUi()
return
Expand Down Expand Up @@ -2666,7 +2666,7 @@ open class DeckPicker :
*
* @param did The id of a deck with no pending cards to review
*/
private suspend fun isDeckAndSubdeckEmpty(did: DeckId): Boolean {
private suspend fun areDeckAndSubdecksEmpty(did: DeckId): Boolean {
val node = getNodeByDid(did)
return withCol {
node.all { decks.isEmpty(it.did) }
Expand Down

0 comments on commit 1eb693e

Please sign in to comment.