1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 10:52:16 -05:00

ConversationActivity: Fill views with buffered messages on resume

This commit is contained in:
Sebastian Kaspari 2010-03-18 22:37:37 +01:00
parent 54e8d9ac10
commit cfe90d718f

View File

@ -136,6 +136,13 @@ public class ConversationActivity extends Activity implements ServiceConnection,
if (!server.isConnected()) {
((EditText) findViewById(R.id.input)).setEnabled(false);
}
// Fill view with messages that have been buffered while paused
for (Conversation conversation : server.getConversations()) {
while (conversation.hasBufferedMessages()) {
conversation.getMessageListAdapter().addMessage(conversation.pollBufferedMessage());
}
}
}
/**