Reputation: 25864
I'm using the standard Search Dialog (as described here) and everything is up and working fine but I now realise I can't search on a blank string.
I'm assuming there must be a flag somewhere which will allow this but can't seem to find where this flag is. Could someone please point me to it?
Upvotes: 2
Views: 340
Reputation: 25864
From SearchDialog.java in android source code:
// If there is text in the query box, handle enter, and action keys
// The search key is handled by the dialog's onKeyDown().
if (!mSearchAutoComplete.isEmpty()) {
...
So, looks like it isn't possible to set a flag to make blank searches possible.
Upvotes: 2