diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-06-04 17:54:44 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-06-04 17:54:44 -0700 |
commit | 2f1b422dc8d30da19dfc51911261d92ccccd9edd (patch) | |
tree | 32fa15d665aa63c13798abdc8c687e4a0fbc4459 | |
parent | 0032ce80ac127e6bfb25d727162eee4af208dc77 (diff) | |
parent | 48603e7fed957f318b12aa24089e0b13c3e78529 (diff) | |
download | frameworks_base-2f1b422dc8d30da19dfc51911261d92ccccd9edd.zip frameworks_base-2f1b422dc8d30da19dfc51911261d92ccccd9edd.tar.gz frameworks_base-2f1b422dc8d30da19dfc51911261d92ccccd9edd.tar.bz2 |
Merge change 3249 into donut
* changes:
Add new SHOW_WEB_SUGGESTIONS system setting, referenced by the search settings (in a follow-on change). This setting, to be respected by global search, and which I will also file a bug to the browser to respect, determines whether live web suggestions will be shown to the user as they type. For privacy reasons, this could be considered undesirable, as partial queries can then be sent to the user's chosen search engine, so a setting was required.
-rw-r--r-- | api/current.xml | 11 | ||||
-rw-r--r-- | core/java/android/provider/Settings.java | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml index 174fa10..9e29152 100644 --- a/api/current.xml +++ b/api/current.xml @@ -108328,6 +108328,17 @@ visibility="public" > </field> +<field name="SHOW_WEB_SUGGESTIONS" + type="java.lang.String" + transient="false" + volatile="false" + value=""show_web_suggestions"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="SOUND_EFFECTS_ENABLED" type="java.lang.String" transient="false" diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 5d10675..7ec3be6 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -1276,6 +1276,14 @@ public final class Settings { * boolean (1 or 0). */ public static final String HAPTIC_FEEDBACK_ENABLED = "haptic_feedback_enabled"; + + /** + * Whether live web suggestions while the user types into search dialogs are + * enabled. Browsers and other search UIs should respect this, as it allows + * a user to avoid sending partial queries to a search engine, if it poses + * any privacy concern. The value is boolean (1 or 0). + */ + public static final String SHOW_WEB_SUGGESTIONS = "show_web_suggestions"; // Settings moved to Settings.Secure |