am 36fd7a39: Tweak user agent building to avoid multiple spaces

* commit '36fd7a39caafac26ea3d56ffc924bce0a53092f1':
  Tweak user agent building to avoid multiple spaces
This commit is contained in:
John Reck
2011-01-10 09:50:53 -08:00
committed by Android Git Automerger

View File

@@ -485,11 +485,12 @@ public class WebSettings {
// default to "en" // default to "en"
buffer.append("en"); buffer.append("en");
} }
buffer.append("; "); buffer.append(";");
// add the model for the release build // add the model for the release build
if ("REL".equals(Build.VERSION.CODENAME)) { if ("REL".equals(Build.VERSION.CODENAME)) {
final String model = Build.MODEL; final String model = Build.MODEL;
if (model.length() > 0) { if (model.length() > 0) {
buffer.append(" ");
buffer.append(model); buffer.append(model);
} }
} }