Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import android.content.Intent
import android.hardware.SensorManager
import android.net.Uri
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.KeyEvent
import android.view.MenuItem
import android.view.View
Expand Down Expand Up @@ -272,6 +274,31 @@ class ReviewerFragment :
if (autoFocusTypeAnswer) {
requestFocus()
}

addTextChangedListener(
object : TextWatcher {
override fun afterTextChanged(s: Editable?) {
if (s.isNullOrEmpty()) return

val imm = context.getSystemService(InputMethodManager::class.java)
imm?.restartInput(this@apply)
}

override fun beforeTextChanged(
s: CharSequence?,
start: Int,
count: Int,
after: Int,
) {}

override fun onTextChanged(
s: CharSequence?,
start: Int,
before: Int,
count: Int,
) {}
},
)
}
}
}
Expand Down
Loading