From f9cd8bb131654be81bd5cdf1fe90c458562bc539 Mon Sep 17 00:00:00 2001 From: Fox-RealCodeFixes Date: Mon, 5 Jan 2026 13:23:03 +0100 Subject: [PATCH 1/2] fix #210: Only show save button if there are unsaved changes The save button's visibility is now conditional on there being actual unsaved changes in any of the open notes. This prevents the button from being displayed unnecessarily when autosave is disabled but no modifications have been made. --- .../main/kotlin/org/fossify/notes/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/fossify/notes/activities/MainActivity.kt b/app/src/main/kotlin/org/fossify/notes/activities/MainActivity.kt index f67d6c865..68d8e5745 100644 --- a/app/src/main/kotlin/org/fossify/notes/activities/MainActivity.kt +++ b/app/src/main/kotlin/org/fossify/notes/activities/MainActivity.kt @@ -277,7 +277,7 @@ class MainActivity : SimpleActivity() { saveNoteButton = findItem(R.id.save_note) saveNoteButton!!.isVisible = - !config.autosaveNotes && showSaveButton && (::mCurrentNote.isInitialized && mCurrentNote.type == NoteType.TYPE_TEXT) + !config.autosaveNotes && showSaveButton && mAdapter?.anyHasUnsavedChanges() == true && (::mCurrentNote.isInitialized && mCurrentNote.type == NoteType.TYPE_TEXT) } binding.pagerTabStrip.beVisibleIf(multipleNotesExist) From c7072479a312ce35b8656da14e5a01e04518a974 Mon Sep 17 00:00:00 2001 From: Fox-RealCodeFixes Date: Mon, 5 Jan 2026 13:47:06 +0100 Subject: [PATCH 2/2] Add the change to the CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e8ccc924..ef73b3e3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed inconsistent checklist sorting when the "Move checked items to the bottom" option is enabled ([#59]) +### Fixed +- Fixed save icon visibility to be conditional only when changes where made ([#210]) + ## [1.6.0] - 2025-10-29 ### Changed - Compatibility updates for Android 15 & 16 @@ -108,6 +111,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#190]: https://github.com/FossifyOrg/Notes/issues/190 [#201]: https://github.com/FossifyOrg/Notes/issues/201 [#291]: https://github.com/FossifyOrg/Notes/issues/291 +[#210]: https://github.com/FossifyOrg/Notes/issues/210 [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