mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 17:02:21 -05:00
ConversationActivity: Fill views with buffered messages on resume
This commit is contained in:
parent
54e8d9ac10
commit
cfe90d718f
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user