Fix first key is not used erroneously

This commit is contained in:
mar-v-in 2014-08-01 12:23:31 +02:00
parent 0568632f32
commit 3a13cd5e4d

View File

@ -115,7 +115,6 @@ public class EncryptKeyCompletionView extends TokenCompleteTextView {
return; return;
} }
ArrayList<EncryptionKey> keys = new ArrayList<EncryptionKey>(); ArrayList<EncryptionKey> keys = new ArrayList<EncryptionKey>();
cursor.moveToFirst();
while (cursor.moveToNext()) { while (cursor.moveToNext()) {
try { try {
if (cursor.getInt(cursor.getColumnIndexOrThrow(KeychainContract.KeyRings.HAS_ENCRYPT)) != 0) { if (cursor.getInt(cursor.getColumnIndexOrThrow(KeychainContract.KeyRings.HAS_ENCRYPT)) != 0) {