mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 19:02:17 -05:00
Cannot add messages to adapter in a differen thread
This commit is contained in:
parent
e0793a3bfa
commit
926bd9168a
@ -140,8 +140,6 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
}
|
||||
|
||||
// Fill view with messages that have been buffered while paused
|
||||
new Thread() {
|
||||
public void run() {
|
||||
for (Conversation conversation : server.getConversations()) {
|
||||
while (conversation.hasBufferedMessages()) {
|
||||
if (conversation.getMessageListAdapter() != null) {
|
||||
@ -150,8 +148,6 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
}
|
||||
}
|
||||
}
|
||||
}.start();
|
||||
}
|
||||
|
||||
/**
|
||||
* On Pause
|
||||
|
Loading…
Reference in New Issue
Block a user