onSearchRequested() isn't call when I show dialog?
<p>I implement search box, to be displayed only on main activity(and on search activity by default). And it works. But I want to disable opening search box(long press menu button) when user from menu open some dialog.</p>

<p>In onOptionsItemSelected(MenuItem item) I have in one case statement:
<code>isDirection=true;
showDialog(ROUTE_DIALOG);</code></p>

<p>In onSearchRequested() I have:
<code>alert("Search");  // show Toast
if(isDirection) return false;
else return super.onSearchRequested();</code></p>

<p>When I long press menu button I see Toast "Search" and searh box, but when I open Dialog by pressing menu item and than long press menu I don't see Toast "Search" but search box opens. Where is the problem? onSearchRequested() isn't called when dialog is opened?</p>
