fix: prevent keyboard from showing up keyboard in short code threads (#567)
This commit is contained in:
parent
365778aaa9
commit
3d26d40d72
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue