Improve trust toggle responsiveness

Removed unnecessary UI refreshes, explicitly update UI where needed.
This commit is contained in:
Andreas Straub 2015-07-28 22:29:19 +02:00
parent efcefc2e63
commit a3991d59c9

View file

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