aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/ui
diff options
context:
space:
mode:
authorAndreas Straub <andy@strb.org>2015-07-22 00:53:18 +0200
committerAndreas Straub <andy@strb.org>2015-07-22 00:53:54 +0200
commit4c1c2892c772fa4622195c81ad35c9e51ab02f35 (patch)
tree02e54496a2cd5ee6af922eeb9d237e53dd6e788e /src/main/java/eu/siacs/conversations/ui
parent456d4c8b23dcf968322841c99d80c79ccda6571b (diff)
Disable trust toggle completely for INACTIVE keys
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/XmppActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
index 4cb6841bc..835685107 100644
--- a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
@@ -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());