mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 10:52:16 -05:00
Only update message list adapter on resume if existing
This commit is contained in:
parent
7e36456b7a
commit
b41017ce93
@ -140,10 +140,12 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
// Fill view with messages that have been buffered while paused
|
||||
for (Conversation conversation : server.getConversations()) {
|
||||
while (conversation.hasBufferedMessages()) {
|
||||
if (conversation.getMessageListAdapter() != null) {
|
||||
conversation.getMessageListAdapter().addMessage(conversation.pollBufferedMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* On Pause
|
||||
|
Loading…
Reference in New Issue
Block a user