diff options
| author | Bjorn Bringert <bringert@android.com> | 2010-03-02 11:16:17 +0000 |
|---|---|---|
| committer | Bjorn Bringert <bringert@android.com> | 2010-03-03 09:20:36 +0000 |
| commit | 0b49ab5cae98d5f27b490b6de35d92e7a63a2e64 (patch) | |
| tree | b1e26e54eec07b623e20af711d9d41c318a05739 /core/java/android/app/SearchManager.java | |
| parent | 97106ab5af0fdba00d6dbda4767b953e0a5829f4 (diff) | |
Add SearchManager.SUGGEST_COLUMN_TEXT_2_URL
This column overrides SUGGEST_COLUMN_TEXT_2. SearchDialog
and QuickSearchBox render the value of this column as a URL in
green.
Part of the fix for http://b/issue?id=2380681
Change-Id: I6735e0eba90e24c81f9e72520f257e5e61796d7a
Diffstat (limited to 'core/java/android/app/SearchManager.java')
| -rw-r--r-- | core/java/android/app/SearchManager.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/app/SearchManager.java b/core/java/android/app/SearchManager.java index b54e53dee6f4..67f9629a5ece 100644 --- a/core/java/android/app/SearchManager.java +++ b/core/java/android/app/SearchManager.java @@ -1355,6 +1355,16 @@ public class SearchManager * a much smaller appearance. */ public final static String SUGGEST_COLUMN_TEXT_2 = "suggest_text_2"; + + /** + * Column name for suggestions cursor. <i>Optional.</i> This is a URL that will be shown + * as the second line of text instead of {@link #SUGGEST_COLUMN_TEXT_2}. This is a separate + * column so that the search UI knows to display the text as a URL, e.g. by using a different + * color. If this column is absent, or has the value {@code null}, + * {@link #SUGGEST_COLUMN_TEXT_2} will be used instead. + */ + public final static String SUGGEST_COLUMN_TEXT_2_URL = "suggest_text_2_url"; + /** * Column name for suggestions cursor. <i>Optional.</i> If your cursor includes this column, * then all suggestions will be provided in a format that includes space for two small icons, |
