diff options
author | Fabian Henneke <FabianHenneke@users.noreply.github.com> | 2020-04-14 09:39:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 13:09:52 +0530 |
commit | b82303d5dd89175f72f8c7f0a7f603d7c4e7237b (patch) | |
tree | e56a4f6aa6e33a5078b65bcf3f2c122fea3af9c9 /app | |
parent | 0d54a687d6e460bcad65d519ae0d49f8d1492c84 (diff) |
Don't trigger onMenuItemActionCollapse on navigation (#702)
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt | 3 |
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?) { |