small fix to be compatible with Android 1.5

This commit is contained in:
Thialfihar 2010-05-11 16:35:41 +00:00
parent 09ad7df83d
commit a8ee0bd863

View File

@ -46,6 +46,9 @@ public class SelectPublicKeyListActivity extends BaseActivity {
}
mList = (ListView) findViewById(R.id.list);
// needed in Android 1.5, where the XML attribute gets ignored
mList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
Vector<PGPPublicKeyRing> keyRings =
(Vector<PGPPublicKeyRing>) Apg.getPublicKeyRings().clone();
Collections.sort(keyRings, new Apg.PublicKeySorter());