From a8ee0bd8633a3aa1921c644e237960f877decc6f Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Tue, 11 May 2010 16:35:41 +0000 Subject: [PATCH] small fix to be compatible with Android 1.5 --- .../thialfihar/android/apg/SelectPublicKeyListActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/thialfihar/android/apg/SelectPublicKeyListActivity.java b/src/org/thialfihar/android/apg/SelectPublicKeyListActivity.java index 495e57742..fbb0b6fe0 100644 --- a/src/org/thialfihar/android/apg/SelectPublicKeyListActivity.java +++ b/src/org/thialfihar/android/apg/SelectPublicKeyListActivity.java @@ -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 keyRings = (Vector) Apg.getPublicKeyRings().clone(); Collections.sort(keyRings, new Apg.PublicKeySorter());