I'm trying to use Android's built-in [Search Dialog](http://developer.android.com/guide/topics/search/search-dialog.html), and it's working fine except when I try to use it with a [ProgressDialog](http://developer.android.com/reference/android/app/ProgressDialog.html). The basic chain of events it his:

1. User press the search button, enters a query and submits it.
2. The SearchManager calls the search Activity's onCreate method.
3. In the onCreate method, I call an AsyncTask that runs a query and shows a ProgressDialog in the onPreExecute method and hides it in the onPostExecute method.

This all happens fine except as soon as I submit the query the screen looks like this:

![enter image description here](https://i.stack.imgur.com/Qwvkh.png)

... which is pretty ugly. How can I prevent this from happening? 

[You can find the source code for the project at Google Code.](http://code.google.com/p/mediawikiprovider/source/browse/#hg%2Fsrc%2Forg%2Fcdmckay%2Fandroid%2Fprovider%2Fdemo)