Skip to content

Commit 6249e94

Browse files
committed
fix #442, close search at opening a contact
1 parent 588c067 commit 6249e94

File tree

1 file changed

+5
-0
lines changed
  • app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities

1 file changed

+5
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
165165
storeStateVariables()
166166
}
167167

168+
override fun onStop() {
169+
super.onStop()
170+
searchMenuItem?.collapseActionView()
171+
}
172+
168173
override fun onDestroy() {
169174
super.onDestroy()
170175
config.lastUsedViewPagerPage = viewpager.currentItem

0 commit comments

Comments
 (0)