diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/settings/import/SettingsImportViewModel.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/settings/import/SettingsImportViewModel.kt index 4c5a85dbd..0b4ec05b7 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/settings/import/SettingsImportViewModel.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/settings/import/SettingsImportViewModel.kt @@ -233,7 +233,10 @@ class SettingsImportViewModel( .mapIndexed { index, account -> index to account.uuid } .toMap(mutableMapOf()) - val items = mutableListOf(SettingsListItem.GeneralSettings()) + val items = mutableListOf() + if (contents.globalSettings) { + items.add(SettingsListItem.GeneralSettings()) + } contents.accounts.mapIndexedTo(items) { index, accountDescription -> SettingsListItem.Account(index, accountDescription.name) }