diff --git a/CHANGELOG.md b/CHANGELOG.md index c202b8417..2e8ccc924 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Disabled touch outside the checklist dialog to prevent loss of content ([#291]) ### Fixed - 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 [#178]: https://github.com/FossifyOrg/Notes/issues/178 [#190]: https://github.com/FossifyOrg/Notes/issues/190 [#201]: https://github.com/FossifyOrg/Notes/issues/201 +[#291]: https://github.com/FossifyOrg/Notes/issues/291 [Unreleased]: https://github.com/FossifyOrg/Notes/compare/1.6.0...HEAD [1.6.0]: https://github.com/FossifyOrg/Notes/compare/1.5.0...1.6.0 diff --git a/app/src/main/kotlin/org/fossify/notes/dialogs/NewChecklistItemDialog.kt b/app/src/main/kotlin/org/fossify/notes/dialogs/NewChecklistItemDialog.kt index de69bc3b6..0e46fe3bd 100644 --- a/app/src/main/kotlin/org/fossify/notes/dialogs/NewChecklistItemDialog.kt +++ b/app/src/main/kotlin/org/fossify/notes/dialogs/NewChecklistItemDialog.kt @@ -46,6 +46,7 @@ class NewChecklistItemDialog( .setNegativeButton(org.fossify.commons.R.string.cancel, null) .apply { activity.setupDialogStuff(view, this, R.string.add_new_checklist_items) { alertDialog -> + alertDialog.setCanceledOnTouchOutside(false) alertDialog.showKeyboard(titles.first()) alertDialog.getButton(BUTTON_POSITIVE).setOnClickListener { activity.config.addNewChecklistItemsTop = binding.settingsAddChecklistTop.isChecked