mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-11 11:35:07 -05:00
Can_Encrypt Check added to hide Button
This commit is contained in:
parent
efab1d27ac
commit
fa439c1a72
@ -266,7 +266,10 @@ public class ViewKeyMainFragment extends Fragment implements
|
|||||||
if (data.moveToFirst()) {
|
if (data.moveToFirst()) {
|
||||||
// get key id from MASTER_KEY_ID
|
// get key id from MASTER_KEY_ID
|
||||||
long keyId = data.getLong(KEYS_INDEX_KEY_ID);
|
long keyId = data.getLong(KEYS_INDEX_KEY_ID);
|
||||||
|
long can_encrypt = data.getLong(KEYS_INDEX_CAN_ENCRYPT);
|
||||||
|
if(can_encrypt == 0){
|
||||||
|
mActionEncrypt.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
String keyIdStr = PgpKeyHelper.convertKeyIdToHex(keyId);
|
String keyIdStr = PgpKeyHelper.convertKeyIdToHex(keyId);
|
||||||
mKeyId.setText(keyIdStr);
|
mKeyId.setText(keyIdStr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user