Cycle through through all checkmark states

This commit is contained in:
2021-08-22 06:23:06 -05:00
parent 79f5b8b7e8
commit 57f5f6ed5b
6 changed files with 129 additions and 35 deletions

View File

@@ -81,11 +81,11 @@ class CheckmarkButtonView(
}
fun performToggle() {
value = if (preferences.isSkipEnabled) {
Entry.nextToggleValueWithSkip(value)
} else {
Entry.nextToggleValueWithoutSkip(value)
}
value = Entry.nextToggleValue(
value = value,
isSkipEnabled = preferences.isSkipEnabled,
areQuestionMarksEnabled = preferences.areQuestionMarksEnabled
)
onToggle(value)
performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
invalidate()