Merge pull request #356 from Aga-C/fix-cursor-position

Fixed cursor position when opening from background (#349)
This commit is contained in:
Naveen Singh 2025-03-24 22:48:26 +05:30 committed by GitHub
commit 5bfe24d803
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -299,6 +299,7 @@ class ThreadActivity : SimpleActivity() {
if (smsDraft.isNotEmpty()) { if (smsDraft.isNotEmpty()) {
runOnUiThread { runOnUiThread {
binding.messageHolder.threadTypeMessage.setText(smsDraft) binding.messageHolder.threadTypeMessage.setText(smsDraft)
binding.messageHolder.threadTypeMessage.setSelection(smsDraft.length)
} }
} }
} }