aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorAndreas Straub <andy@strb.org>2015-07-28 22:29:19 +0200
committerAndreas Straub <andy@strb.org>2015-07-29 02:59:41 +0200
commita3991d59c908c151fa2b1f6ea9f865313d7c8cce (patch)
tree98db85ee04bbdf4f6c78cd564eaf6285d11e038d /src/main
parentefcefc2e6301f6255ebcb3e11f0f0a51731bacca (diff)
Improve trust toggle responsiveness
Removed unnecessary UI refreshes, explicitly update UI where needed.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/XmppActivity.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
index 52c2e4f47..857a1dc43 100644
--- a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
@@ -621,9 +621,6 @@ public abstract class XmppActivity extends Activity {
(isChecked) ? SQLiteAxolotlStore.Trust.TRUSTED :
SQLiteAxolotlStore.Trust.UNTRUSTED);
}
- refreshUi();
- xmppConnectionService.updateAccountUi();
- xmppConnectionService.updateConversationUi();
}
},
new View.OnClickListener() {
@@ -631,9 +628,7 @@ public abstract class XmppActivity extends Activity {
public void onClick(View v) {
account.getAxolotlService().setFingerprintTrust(fingerprint,
SQLiteAxolotlStore.Trust.UNTRUSTED);
- refreshUi();
- xmppConnectionService.updateAccountUi();
- xmppConnectionService.updateConversationUi();
+ v.setEnabled(true);
}
}