Skip to content

Commit

Permalink
Merge pull request #1561 from michaelschattgen/fix/import-multiple-en…
Browse files Browse the repository at this point in the history
…tries

Add fix for importing multiple entries
  • Loading branch information
alexbakker authored Dec 2, 2024
2 parents 5213baf + f9ada47 commit fa07337
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,10 @@ private void importScannedEntries(List<VaultEntry> entries) {
if (entries.size() == 1) {
startEditEntryActivityForNew(entries.get(0));
} else if (entries.size() > 1) {
for (VaultEntry entry: entries) {
_vaultManager.getVault().addEntry(entry);
}

if (saveAndBackupVault()) {
Toast.makeText(this, getResources().getQuantityString(R.plurals.added_new_entries, entries.size(), entries.size()), Toast.LENGTH_LONG).show();
}
Expand Down

0 comments on commit fa07337

Please sign in to comment.