Merge pull request #1561 from michaelschattgen/fix/import-multiple-entries

Add fix for importing multiple entries
This commit is contained in:
Alexander Bakker 2024-12-02 18:37:48 +01:00 committed by GitHub
commit fa073371b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -685,6 +685,10 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
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();
}