mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
Improve trust toggle responsiveness
Removed unnecessary UI refreshes, explicitly update UI where needed.
This commit is contained in:
parent
efcefc2e63
commit
a3991d59c9
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user