Can_Encrypt Check added to hide Button

This commit is contained in:
Sreeram Boyapati 2014-03-18 07:17:05 +05:30
parent efab1d27ac
commit fa439c1a72

View File

@ -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);