1
0
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:
Sebastian Kaspari 2010-03-20 15:44:34 +01:00
parent 7e36456b7a
commit b41017ce93

View File

@ -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