Skip to content

Commit 1ef033a

Browse files
authored
feat: disable cancellation on touch outside checklist dialog (#292)
* feat: disable cancellation on touch outside checklist dialog * fix: disable cancellation on touch outside checklist dialog
1 parent 3a26871 commit 1ef033a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Changed
9+
- Disabled touch outside the checklist dialog to prevent loss of content ([#291])
810

911
### Fixed
1012
- Fixed inconsistent checklist sorting when the "Move checked items to the bottom" option is enabled ([#59])
@@ -105,6 +107,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
105107
[#178]: https://github.com/FossifyOrg/Notes/issues/178
106108
[#190]: https://github.com/FossifyOrg/Notes/issues/190
107109
[#201]: https://github.com/FossifyOrg/Notes/issues/201
110+
[#291]: https://github.com/FossifyOrg/Notes/issues/291
108111

109112
[Unreleased]: https://github.com/FossifyOrg/Notes/compare/1.6.0...HEAD
110113
[1.6.0]: https://github.com/FossifyOrg/Notes/compare/1.5.0...1.6.0

app/src/main/kotlin/org/fossify/notes/dialogs/NewChecklistItemDialog.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class NewChecklistItemDialog(
4646
.setNegativeButton(org.fossify.commons.R.string.cancel, null)
4747
.apply {
4848
activity.setupDialogStuff(view, this, R.string.add_new_checklist_items) { alertDialog ->
49+
alertDialog.setCanceledOnTouchOutside(false)
4950
alertDialog.showKeyboard(titles.first())
5051
alertDialog.getButton(BUTTON_POSITIVE).setOnClickListener {
5152
activity.config.addNewChecklistItemsTop = binding.settingsAddChecklistTop.isChecked

0 commit comments

Comments
 (0)