mirror of
https://github.com/Corewala/Buran
synced 2025-03-11 22:53:08 +00:00
Fixed keyboard scrolling bug
This commit is contained in:
parent
4f4f6a3304
commit
0e12e8a276
1 changed files with 6 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue