From b82303d5dd89175f72f8c7f0a7f603d7c4e7237b Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Tue, 14 Apr 2020 09:39:52 +0200 Subject: Don't trigger onMenuItemActionCollapse on navigation (#702) --- app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main') 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?) { -- cgit v1.2.3