SearchView does not allow the backpress 1st time code example
Example: SearchView does not allow the backpress 1st time
if (!searchView.isIconified())
{
searchView.setIconified(true);
searchView.onActionViewCollapsed();
}
else
{
super.onBackPressed();
}