From ce1120b66efc4355e2de29c6ab6bcd6bdada9d15 Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Mon, 7 Jun 2010 15:25:11 +0000 Subject: [PATCH] make sure the preselected encryption key can encrypt, otherwise deselect it again at display time --- .../thialfihar/android/apg/SelectPublicKeyListAdapter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/thialfihar/android/apg/SelectPublicKeyListAdapter.java b/src/org/thialfihar/android/apg/SelectPublicKeyListAdapter.java index 9bb652248..095772ec2 100644 --- a/src/org/thialfihar/android/apg/SelectPublicKeyListAdapter.java +++ b/src/org/thialfihar/android/apg/SelectPublicKeyListAdapter.java @@ -207,6 +207,10 @@ public class SelectPublicKeyListAdapter extends BaseAdapter { CheckBox selected = (CheckBox) view.findViewById(R.id.selected); + if (!enabled) { + mParent.setItemChecked(position, false); + } + selected.setChecked(mParent.isItemChecked(position)); view.setEnabled(enabled);