forked from mirror/monocles_chat
little performance improvement
This commit is contained in:
parent
c944313d86
commit
976896cb39
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue