mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
adding the settings item for moving undone checklist items
This commit is contained in:
@ -38,6 +38,7 @@ class SettingsActivity : SimpleActivity() {
|
||||
setupMonospacedFont()
|
||||
setupShowKeyboard()
|
||||
setupShowNotePicker()
|
||||
setupMoveUndoneChecklistItems()
|
||||
setupShowWordCount()
|
||||
setupEnableLineWrap()
|
||||
setupFontSize()
|
||||
@ -130,6 +131,14 @@ class SettingsActivity : SimpleActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupMoveUndoneChecklistItems() {
|
||||
settings_move_undone_checklist_items.isChecked = config.moveUndoneChecklistItems
|
||||
settings_move_undone_checklist_items_holder.setOnClickListener {
|
||||
settings_move_undone_checklist_items.toggle()
|
||||
config.moveUndoneChecklistItems = settings_move_undone_checklist_items.isChecked
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupShowWordCount() {
|
||||
settings_show_word_count.isChecked = config.showWordCount
|
||||
settings_show_word_count_holder.setOnClickListener {
|
||||
|
Reference in New Issue
Block a user