mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Compose sign icon
This commit is contained in:
parent
a75519e95d
commit
0bfd7d7ca4
1 changed files with 10 additions and 4 deletions
|
@ -931,10 +931,16 @@ public class FragmentCompose extends FragmentBase {
|
||||||
int colorEncrypt = Helper.resolveColor(getContext(), R.attr.colorEncrypt);
|
int colorEncrypt = Helper.resolveColor(getContext(), R.attr.colorEncrypt);
|
||||||
ImageButton ib = (ImageButton) menu.findItem(R.id.menu_encrypt).getActionView();
|
ImageButton ib = (ImageButton) menu.findItem(R.id.menu_encrypt).getActionView();
|
||||||
ib.setEnabled(!busy);
|
ib.setEnabled(!busy);
|
||||||
ib.setImageResource(EntityMessage.PGP_SIGNENCRYPT.equals(encrypt)
|
if (EntityMessage.PGP_SIGNONLY.equals(encrypt)) {
|
||||||
? R.drawable.baseline_lock_24 : R.drawable.baseline_lock_open_24);
|
ib.setImageResource(R.drawable.baseline_gesture_24);
|
||||||
ib.setImageTintList(EntityMessage.PGP_SIGNENCRYPT.equals(encrypt)
|
ib.setImageTintList(null);
|
||||||
? ColorStateList.valueOf(colorEncrypt) : null);
|
} else if (EntityMessage.PGP_SIGNENCRYPT.equals(encrypt)) {
|
||||||
|
ib.setImageResource(R.drawable.baseline_lock_24);
|
||||||
|
ib.setImageTintList(ColorStateList.valueOf(colorEncrypt));
|
||||||
|
} else {
|
||||||
|
ib.setImageResource(R.drawable.baseline_lock_open_24);
|
||||||
|
ib.setImageTintList(null);
|
||||||
|
}
|
||||||
|
|
||||||
menu.findItem(R.id.menu_media).setChecked(media);
|
menu.findItem(R.id.menu_media).setChecked(media);
|
||||||
menu.findItem(R.id.menu_compact).setChecked(compact);
|
menu.findItem(R.id.menu_compact).setChecked(compact);
|
||||||
|
|
Loading…
Reference in a new issue