Skip to content

Commit

Permalink
chore: [DeckPicker] logs
Browse files Browse the repository at this point in the history
To help diagnose issue 14285 (Rebuild didn't update UI)
  • Loading branch information
david-allison authored and lukstbit committed Aug 27, 2023
1 parent 4e248f4 commit 6284759
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,7 @@ open class DeckPicker :
// actually happens
performBackupInBackground()
}
Timber.d("updateDeckList: quick: %b", quick)
if (quick) {
launchCatchingTask {
withProgress {
Expand Down Expand Up @@ -2049,6 +2050,7 @@ open class DeckPicker :
if (dueTree == null) {
// mDueTree may be set back to null when the activity restart.
// We may need to recompute it.
Timber.d("renderPage: recomputing dueTree")
updateDeckList()
return
}
Expand Down Expand Up @@ -2091,6 +2093,7 @@ open class DeckPicker :
if (mToolbarSearchView != null) {
mDeckListAdapter.filter.filter(currentFilter)
}
Timber.d("Not rendering deck list as there are no cards")
// We're done here
return
}
Expand Down

0 comments on commit 6284759

Please sign in to comment.