mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-11 11:35:07 -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()) {
|
||||
// get key id from MASTER_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);
|
||||
mKeyId.setText(keyIdStr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user