scroll to bottom after sending multi-line message
This commit is contained in:
parent
cc209afc51
commit
1bc92482e9
|
@ -10,6 +10,7 @@ import android.content.DialogInterface;
|
|||
import android.content.Intent;
|
||||
import android.content.IntentSender.SendIntentException;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.text.InputType;
|
||||
import android.view.ContextMenu;
|
||||
|
@ -956,10 +957,15 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||
}
|
||||
|
||||
private void messageSent() {
|
||||
int size = this.messageList.size();
|
||||
messagesView.setSelection(size - 1);
|
||||
mEditMessage.setText("");
|
||||
updateChatMsgHint();
|
||||
new Handler().post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
int size = messageList.size();
|
||||
messagesView.setSelection(size - 1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void setFocusOnInputField() {
|
||||
|
|
Loading…
Reference in a new issue