make sure the preselected encryption key can encrypt, otherwise deselect it again at display time

This commit is contained in:
Thialfihar 2010-06-07 15:25:11 +00:00
parent 7b219c5f72
commit ce1120b66e

View File

@ -207,6 +207,10 @@ public class SelectPublicKeyListAdapter extends BaseAdapter {
CheckBox selected = (CheckBox) view.findViewById(R.id.selected); CheckBox selected = (CheckBox) view.findViewById(R.id.selected);
if (!enabled) {
mParent.setItemChecked(position, false);
}
selected.setChecked(mParent.isItemChecked(position)); selected.setChecked(mParent.isItemChecked(position));
view.setEnabled(enabled); view.setEnabled(enabled);