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
	
	 Andreas Straub
						Andreas Straub