little performance improvement

This commit is contained in:
Arne 2024-03-22 21:25:58 +01:00
parent c944313d86
commit 976896cb39

View file

@ -2895,7 +2895,9 @@ public class XmppConnectionService extends Service {
private void markChangedFiles(List<DatabaseBackend.FilePathInfo> infos) {
final boolean[] changed = {false};
for (Conversation conversation : getConversations()) {
new Thread( new Runnable() { @Override public void run() {
changed[0] |= conversation.markAsChanged(infos);
} } ).start();
}
if (changed[0]) {
updateConversationUi();