Skip to content

Commit

Permalink
Set cursor to end when cancelling message
Browse files Browse the repository at this point in the history
Closes #1484
  • Loading branch information
moezbhatti committed Jan 2, 2021
1 parent c030d8c commit 0472535
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,10 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
startActivityForResult(Intent.createChooser(intent, null), AttachPhotoRequestCode)
}

override fun setDraft(draft: String) = binding.message.setText(draft)
override fun setDraft(draft: String) {
binding.message.setText(draft)
binding.message.setSelection(draft.length)
}

override fun scrollToMessage(id: Long) {
messageAdapter.data?.second
Expand Down

0 comments on commit 0472535

Please sign in to comment.