From 453cf58b385b6e6d27d7d827c793cbb2a6dbbf3a Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Fri, 27 Mar 2020 10:06:16 +0100 Subject: 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 --- app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'app') 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 } -- cgit v1.2.3