Fixed keyboard scrolling bug

This commit is contained in:
Corewala 2022-01-06 17:26:32 -05:00
parent 4f4f6a3304
commit 0e12e8a276
1 changed files with 6 additions and 4 deletions

View File

@ -146,14 +146,16 @@ class GemActivity : AppCompatActivity() {
}
}
binding.addressEdit.setOnClickListener {
binding.addressEdit.clearFocus()
binding.addressEdit.showKeyboard()
}
binding.addressEdit.setOnFocusChangeListener { v, hasFocus ->
var addressPaddingRight = resources.getDimensionPixelSize(R.dimen.def_address_right_margin)
if(hasFocus) {
binding.addressEdit.showKeyboard()
focusEnd()
}else{
if(!hasFocus) {
binding.addressEdit.hideKeyboard()
}