summaryrefslogtreecommitdiffstats
path: root/core/res
diff options
context:
space:
mode:
authorSatish Sampath <satish@android.com>2009-06-11 14:05:51 +0100
committerSatish Sampath <satish@android.com>2009-06-11 16:27:29 +0100
commit35379abd46b68a4efa20035c6c8b9d1faceb4dcc (patch)
tree115fe06544123d4c98fbba311680fe3213068acf /core/res
parent174231d89adf4a01f28e6074eb8f743240400c26 (diff)
downloadframeworks_base-35379abd46b68a4efa20035c6c8b9d1faceb4dcc.zip
frameworks_base-35379abd46b68a4efa20035c6c8b9d1faceb4dcc.tar.gz
frameworks_base-35379abd46b68a4efa20035c6c8b9d1faceb4dcc.tar.bz2
Added attribute queryAfterZeroResults to searchables.
As of now we are just reading it from the xml and not acting upon it, that would come in a subsequent change.
Diffstat (limited to 'core/res')
-rw-r--r--core/res/res/values/attrs.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml
index c13bf77..99fe9c8 100644
--- a/core/res/res/values/attrs.xml
+++ b/core/res/res/values/attrs.xml
@@ -2849,6 +2849,14 @@
The default value is <code>false</code>. <i>Optional attribute.</i>. -->
<attr name="includeInGlobalSearch" format="boolean" />
+ <!-- If provided and <code>true</code>, this searchable activity will be invoked for all
+ queries in a particular session. If set to <code>false</code> and the activity
+ returned zero results for a query, it will not be invoked again in that session for
+ supersets of that zero-results query. For example, if the activity returned zero
+ results for "bo", it would not be queried again for "bob".
+ The default value is <code>false</code>. <i>Optional attribute.</i>. -->
+ <attr name="queryAfterZeroResults" format="boolean" />
+
</declare-styleable>
<!-- In order to process special action keys during search, you must define them using