From 096fbe0583fec1fe5598a77f68f6c8185af655cb Mon Sep 17 00:00:00 2001 From: Bart Sears Date: Fri, 19 Nov 2010 16:21:36 -0800 Subject: Make sure we have a ";" after locale in User Agent When in pre-release mode, we did not have a semi-colon between the locale (i.e. "en-us") and the the Build (i.e. "Build/HRH50") In release mode we correctly added the semi-colon (and put in the "model") so this was only an issue when in pre-release mode. Bug: 3215465 Change-Id: Ied1acc69463ffddabbc886e7e7e5e8cc8ab14956 --- core/java/android/webkit/WebSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index 4d582ef..f4caa74 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -483,11 +483,11 @@ public class WebSettings { // default to "en" buffer.append("en"); } + buffer.append("; "); // add the model for the release build if ("REL".equals(Build.VERSION.CODENAME)) { final String model = Build.MODEL; if (model.length() > 0) { - buffer.append("; "); buffer.append(model); } } -- cgit v1.1