Skip to content

Commit

Permalink
chore: log snackbar content
Browse files Browse the repository at this point in the history
debug only, so this information doesn't go to ACRA
  • Loading branch information
david-allison authored and lukstbit committed Apr 13, 2024
1 parent 3dc1ecc commit aa1227c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AnkiDroid/src/main/java/com/ichi2/anki/snackbar/Snackbars.kt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ fun Activity.showSnackbar(
view.showSnackbar(text, duration) {
baseSnackbarBuilder?.invoke(this)
snackbarBuilder?.invoke(this)
Timber.d("displayed snackbar: '%s'", text)
}
} else {
val errorMessage = "While trying to show a snackbar, " +
Expand Down Expand Up @@ -241,6 +242,7 @@ fun Fragment.showSnackbar(
requireActivity().showSnackbar(text, duration) {
baseSnackbarBuilder?.invoke(this)
snackbarBuilder?.invoke(this)
Timber.d("displayed snackbar: '%s'", text)
}
}

Expand Down

0 comments on commit aa1227c

Please sign in to comment.