diff options
author | Fabian Henneke <FabianHenneke@users.noreply.github.com> | 2020-03-27 10:06:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 10:06:16 +0100 |
commit | 453cf58b385b6e6d27d7d827c793cbb2a6dbbf3a (patch) | |
tree | c7dab4e533b697d37cf4858638571e21d6e77fc5 | |
parent | 94b0b64501da5be8bdbefb237a3193e15ed1b456 (diff) |
Let IME button dismiss keyboard during search (#673)
The IME search button is currently without function while the
PasswordStore SearchView is focused, which means that the keyboard
hides part of the search result until back is pressed.
This commit makes the IME button function like the back key in this
situation, dismissing the keyboard.
Co-authored-by: Harsh Shandilya <msfjarvis@gmail.com>
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt index 72fbee8d..7495cff1 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt @@ -167,6 +167,7 @@ class PasswordStore : AppCompatActivity() { searchView.setOnQueryTextListener( object : OnQueryTextListener { override fun onQueryTextSubmit(s: String): Boolean { + searchView.clearFocus() return true } |