mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-23 07:19:13 +00:00
Merge pull request #1561 from michaelschattgen/fix/import-multiple-entries
Add fix for importing multiple entries
This commit is contained in:
commit
fa073371b5
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue