Skip to content

Commit

Permalink
feat: notes-only error: allow opening options
Browse files Browse the repository at this point in the history
If a user sees "Unavailable in ‘Notes’ mode"
we should let them open the options from here

Related: 15444
  • Loading branch information
david-allison authored and mikehardy committed Feb 16, 2024
1 parent 9032e03 commit 5659b80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AnkiDroid/src/main/java/com/ichi2/anki/CardBrowser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,9 @@ open class CardBrowser :
*/
private fun warnUserIfInNotesOnlyMode(): Boolean {
if (viewModel.cardsOrNotes != NOTES) return false
showSnackbar(R.string.card_browser_unavailable_when_notes_mode)
showSnackbar(R.string.card_browser_unavailable_when_notes_mode) {
setAction(R.string.error_handling_options) { showOptionsDialog() }
}
return true
}

Expand Down

0 comments on commit 5659b80

Please sign in to comment.