mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-17 07:30:14 -05:00
Merge pull request #437 from sreeram-boyapati/encrypt
Can_Encrypt Check added to hide Button
This commit is contained in:
commit
b97097d8d9
@ -285,7 +285,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 canEncrypt = data.getLong(KEYS_INDEX_CAN_ENCRYPT);
|
||||||
|
if(canEncrypt == 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