Source:
<code>public void onPrepareOptionsMenu(Menu menu) { ComposeCryptoStatus currentCryptoStatus = getCurrentCachedCryptoStatus(); boolean isCryptoConfigured = currentCryptoStatus != null && currentCryptoStatus.isProviderStateOk(); if (isCryptoConfigured) { boolean isEncrypting = currentCryptoStatus.isEncryptionEnabled(); menu.findItem(R.id.openpgp_encrypt_enable).setVisible(!isEncrypting); menu.findItem(R.id.openpgp_encrypt_disable).setVisible(isEncrypting); <START> boolean hideSignOnly = account.getPgpHideSignOnly(); <END> boolean isSignOnly = currentCryptoStatus.isSignOnly(); menu.findItem(R.id.openpgp_sign_only).setVisible(!hideSignOnly && !isSignOnly); menu.findItem(R.id.openpgp_sign_only_disable).setVisible(!hideSignOnly && isSignOnly); boolean pgpInlineModeEnabled = currentCryptoStatus.isPgpInlineModeEnabled(); boolean showPgpInlineEnable = (isEncrypting || isSignOnly) && !pgpInlineModeEnabled; menu.findItem(R.id.openpgp_inline_enable).setVisible(showPgpInlineEnable); menu.findItem(R.id.openpgp_inline_disable).setVisible(pgpInlineModeEnabled); } else { menu.findItem(R.id.openpgp_inline_enable).setVisible(false); menu.findItem(R.id.openpgp_inline_disable).setVisible(false); menu.findItem(R.id.openpgp_encrypt_enable).setVisible(false); menu.findItem(R.id.openpgp_encrypt_disable).setVisible(false); menu.findItem(R.id.openpgp_sign_only).setVisible(false); menu.findItem(R.id.openpgp_sign_only_disable).setVisible(false); } boolean noContactPickerAvailable = !hasContactPicker(); if (noContactPickerAvailable) { menu.findItem(R.id.add_from_contacts).setVisible(false); } }</code><technical_language>!hideSignOnly. original variable name</technical_language>

Target:
public void onPrepareOptionsMenu(Menu menu) { ComposeCryptoStatus currentCryptoStatus = getCurrentCachedCryptoStatus(); boolean isCryptoConfigured = currentCryptoStatus != null && currentCryptoStatus.isProviderStateOk(); if (isCryptoConfigured) { boolean isEncrypting = currentCryptoStatus.isEncryptionEnabled(); menu.findItem(R.id.openpgp_encrypt_enable).setVisible(!isEncrypting); menu.findItem(R.id.openpgp_encrypt_disable).setVisible(isEncrypting); boolean showSignOnly = !account.getOpenPgpHideSignOnly(); boolean isSignOnly = currentCryptoStatus.isSignOnly(); menu.findItem(R.id.openpgp_sign_only).setVisible(showSignOnly && !isSignOnly); menu.findItem(R.id.openpgp_sign_only_disable).setVisible(showSignOnly && isSignOnly); boolean pgpInlineModeEnabled = currentCryptoStatus.isPgpInlineModeEnabled(); boolean showPgpInlineEnable = (isEncrypting || isSignOnly) && !pgpInlineModeEnabled; menu.findItem(R.id.openpgp_inline_enable).setVisible(showPgpInlineEnable); menu.findItem(R.id.openpgp_inline_disable).setVisible(pgpInlineModeEnabled); } else { menu.findItem(R.id.openpgp_inline_enable).setVisible(false); menu.findItem(R.id.openpgp_inline_disable).setVisible(false); menu.findItem(R.id.openpgp_encrypt_enable).setVisible(false); menu.findItem(R.id.openpgp_encrypt_disable).setVisible(false); menu.findItem(R.id.openpgp_sign_only).setVisible(false); menu.findItem(R.id.openpgp_sign_only_disable).setVisible(false); } boolean noContactPickerAvailable = !hasContactPicker(); if (noContactPickerAvailable) { menu.findItem(R.id.add_from_contacts).setVisible(false); } }