mirror of
https://github.com/Corewala/Buran
synced 2025-01-03 13:44:24 +00:00
Fixed keyboard glitching in address bar
This commit is contained in:
parent
324d947330
commit
a78d11bf5a
1 changed files with 1 additions and 3 deletions
|
@ -7,6 +7,7 @@ import android.content.SharedPreferences
|
||||||
import android.graphics.Color
|
import android.graphics.Color
|
||||||
import android.graphics.drawable.ColorDrawable
|
import android.graphics.drawable.ColorDrawable
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
|
import android.os.Build
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.WindowManager
|
import android.view.WindowManager
|
||||||
import android.view.inputmethod.EditorInfo
|
import android.view.inputmethod.EditorInfo
|
||||||
|
@ -155,7 +156,6 @@ class GemActivity : AppCompatActivity() {
|
||||||
when (actionId) {
|
when (actionId) {
|
||||||
EditorInfo.IME_ACTION_GO -> {
|
EditorInfo.IME_ACTION_GO -> {
|
||||||
omniTerm.input(binding.addressEdit.text.toString().trim())
|
omniTerm.input(binding.addressEdit.text.toString().trim())
|
||||||
binding.addressEdit.hideKeyboard()
|
|
||||||
binding.addressEdit.clearFocus()
|
binding.addressEdit.clearFocus()
|
||||||
return@setOnEditorActionListener true
|
return@setOnEditorActionListener true
|
||||||
}
|
}
|
||||||
|
@ -164,8 +164,6 @@ class GemActivity : AppCompatActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.addressEdit.setOnClickListener {
|
binding.addressEdit.setOnClickListener {
|
||||||
binding.addressEdit.clearFocus()
|
|
||||||
binding.addressEdit.showKeyboard()
|
|
||||||
binding.addressEdit.requestFocus()
|
binding.addressEdit.requestFocus()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue