diff options
Diffstat (limited to 'OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysAdapter.java')
-rw-r--r-- | OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysAdapter.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysAdapter.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysAdapter.java index 8170defe4..a850fc020 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysAdapter.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysAdapter.java @@ -17,6 +17,7 @@ package org.sufficientlysecure.keychain.ui.adapter; +import java.util.ArrayList; import java.util.List; import org.sufficientlysecure.keychain.R; @@ -69,6 +70,15 @@ public class ImportKeysAdapter extends ArrayAdapter<ImportKeysListEntry> { return data; } + public ArrayList<ImportKeysListEntry> getSelectedData() { + ArrayList<ImportKeysListEntry> selectedData = new ArrayList<ImportKeysListEntry>(); + for (ImportKeysListEntry entry : data) { + if (entry.isSelected()) + selectedData.add(entry); + } + return selectedData; + } + @Override public boolean hasStableIds() { return true; |