make sure the preselected encryption key can encrypt, otherwise deselect it again at display time
This commit is contained in:
1 parent
7b219c5f72
commit
ce1120b66e
1 file changed
+4
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user