[android-developers] Re: Preventing the search button from closing an AlertDialog?

2011-01-16 Thread Zsolt Vasvari
Just to bump this (as this is important for me), this close on the Search press behavior is happening even if the dialog is set to non- cancelable. I think that's a flat out bug and may create a bug report for it. On Jan 16, 10:49 am, Zsolt Vasvari zvasv...@gmail.com wrote: I have to add that

Re: [android-developers] Re: Preventing the search button from closing an AlertDialog?

2011-01-16 Thread Dianne Hackborn
You could try attaching a key listener that consumes the search key. I agree it is dumb for it to be dismissing itself when the key is pressed. I think this is left-over from when the search key used to always to a global search, so it would be a switch into the search UI and dialogs would

[android-developers] Re: Preventing the search button from closing an AlertDialog?

2011-01-16 Thread Zsolt Vasvari
Thanks, Dianne! You could try attaching a key listener that consumes the search key. Could you point me in the right direction? How can I attach a key listener to a dialog returned from AlertDialog.Builder? As, obviously,I have access to the parent Activity, can I do something there?

[android-developers] Re: Preventing the search button from closing an AlertDialog?

2011-01-15 Thread Zsolt Vasvari
I have to add that this effect EVERY dialog in the system. So, for example, if you have an LVL or any type of important dialog where you must be notified of its closing, you better make sure that the user cannot just dismiss it using the Search button. On Jan 16, 10:44 am, Zsolt Vasvari