mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-15 05:25:05 -05:00
Only update message list adapter on resume if existing
This commit is contained in:
parent
7e36456b7a
commit
b41017ce93
@ -140,7 +140,9 @@ 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()) {
|
||||
conversation.getMessageListAdapter().addMessage(conversation.pollBufferedMessage());
|
||||
if (conversation.getMessageListAdapter() != null) {
|
||||
conversation.getMessageListAdapter().addMessage(conversation.pollBufferedMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user