From 41cffa23f5a673bcd96bd6abe24b5aba87b74aa1 Mon Sep 17 00:00:00 2001 From: Niklas Engblom Date: Thu, 10 Sep 2026 12:58:38 +0300 Subject: [PATCH] feat: remember last used contact source when importing The import dialog already defaulted to the last used contact source but never stored the selection, so it kept falling back to whatever was set elsewhere. --- CHANGELOG.md | 3 +++ .../org/fossify/contacts/dialogs/ImportContactsDialog.kt | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9a92d320..7eb909c6a 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 +- Contact import now remembers the last used contact source ([#81]) ## [1.6.0] - 2026-01-30 ### Added @@ -118,6 +120,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#12]: https://github.com/FossifyOrg/Contacts/issues/12 [#30]: https://github.com/FossifyOrg/Contacts/issues/30 [#78]: https://github.com/FossifyOrg/Contacts/issues/78 +[#81]: https://github.com/FossifyOrg/Contacts/issues/81 [#157]: https://github.com/FossifyOrg/Contacts/issues/157 [#201]: https://github.com/FossifyOrg/Contacts/issues/201 [#281]: https://github.com/FossifyOrg/Contacts/issues/281 diff --git a/app/src/main/kotlin/org/fossify/contacts/dialogs/ImportContactsDialog.kt b/app/src/main/kotlin/org/fossify/contacts/dialogs/ImportContactsDialog.kt index d875953a6..2903448ca 100644 --- a/app/src/main/kotlin/org/fossify/contacts/dialogs/ImportContactsDialog.kt +++ b/app/src/main/kotlin/org/fossify/contacts/dialogs/ImportContactsDialog.kt @@ -61,6 +61,7 @@ class ImportContactsDialog(val activity: SimpleActivity, val path: String, priva ignoreClicks = true activity.toast(org.fossify.commons.R.string.importing) + activity.config.lastUsedContactSource = targetContactSource ensureBackgroundThread { val result = VcfImporter(activity).importContacts(path, targetContactSource) handleParseResult(result)