1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-22 17:02:21 -05:00

Only update message list adapter on resume if existing

This commit is contained in:
Sebastian Kaspari 2010-03-20 15:44:34 +01:00
parent 7e36456b7a
commit b41017ce93

View File

@ -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());
}
}
}
}