fix: prevent keyboard from showing up keyboard in short code threads (#567)

This commit is contained in:
Naveen Singh 2025-10-18 14:47:59 +05:30 committed by GitHub
parent 365778aaa9
commit 3d26d40d72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -453,7 +453,7 @@ class ThreadActivity : SimpleActivity() {
setupAdapter()
runOnUiThread {
if (messages.isEmpty()) {
if (messages.isEmpty() && !isSpecialNumber()) {
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
binding.messageHolder.threadTypeMessage.requestFocus()
}
@ -981,6 +981,8 @@ class ThreadActivity : SimpleActivity() {
private fun maybeDisableShortCodeReply() {
if (isSpecialNumber() && !isRecycleBin) {
currentFocus?.clearFocus()
hideKeyboard()
binding.messageHolder.threadTypeMessage.text?.clear()
binding.messageHolder.root.beGone()
binding.shortCodeHolder.root.beVisible()