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 :
|
(isChecked) ? SQLiteAxolotlStore.Trust.TRUSTED :
|
||||||
SQLiteAxolotlStore.Trust.UNTRUSTED);
|
SQLiteAxolotlStore.Trust.UNTRUSTED);
|
||||||
}
|
}
|
||||||
refreshUi();
|
|
||||||
xmppConnectionService.updateAccountUi();
|
|
||||||
xmppConnectionService.updateConversationUi();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
new View.OnClickListener() {
|
new View.OnClickListener() {
|
||||||
|
@ -631,9 +628,7 @@ public abstract class XmppActivity extends Activity {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
account.getAxolotlService().setFingerprintTrust(fingerprint,
|
account.getAxolotlService().setFingerprintTrust(fingerprint,
|
||||||
SQLiteAxolotlStore.Trust.UNTRUSTED);
|
SQLiteAxolotlStore.Trust.UNTRUSTED);
|
||||||
refreshUi();
|
v.setEnabled(true);
|
||||||
xmppConnectionService.updateAccountUi();
|
|
||||||
xmppConnectionService.updateConversationUi();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue