forked from mirror/monocles_chat_clean
Improve trust toggle responsiveness
Removed unnecessary UI refreshes, explicitly update UI where needed.
This commit is contained in:
parent
0b661a698d
commit
dd2da64a4c
1 changed files with 1 additions and 6 deletions
|
@ -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 a new issue