shorten the search closing code

This commit is contained in:
tibbi 2018-01-31 19:31:12 +01:00
parent f147246f64
commit f7010a9529

View file

@ -241,9 +241,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
}
private fun closeSearch() {
if (mSearchMenuItem != null) {
MenuItemCompat.collapseActionView(mSearchMenuItem)
}
mSearchMenuItem?.collapseActionView()
}
private fun checkOpenIntents() {