1
0
Fork 0
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:
M66B 2019-12-01 18:27:44 +01:00
parent a75519e95d
commit 0bfd7d7ca4

View file

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