summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
index 964fb323..df3c0faa 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
@@ -291,7 +291,8 @@ class PasswordStore : AppCompatActivity() {
}
fun clearSearch() {
- searchItem.collapseActionView()
+ if (searchItem.isActionViewExpanded)
+ searchItem.collapseActionView()
}
fun openSettings(view: View?) {