mirror of https://github.com/Corewala/Buran
Fixed keyboard scrolling bug
This commit is contained in:
parent
4f4f6a3304
commit
0e12e8a276
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue