fix #1239: fix media search button when it's visible in the action bar

fix #1239: fix media search button when it's visible in the action bar