Disable trust toggle completely for INACTIVE keys

This commit is contained in:
Andreas Straub 2015-07-22 00:53:18 +02:00
parent 456d4c8b23
commit 4c1c2892c7

View file

@ -680,6 +680,7 @@ public abstract class XmppActivity extends Activity {
keyType.setTextColor(getSecondaryTextColor());
break;
case INACTIVE:
trustToggle.setOnClickListener(null);
trustToggle.setChecked(true, false);
trustToggle.setEnabled(false);
key.setTextColor(getTertiaryTextColor());