am a297a266: am feb2b311: Merge change 22988 into eclair

Merge commit 'a297a266bdea9f64c6a548661aa4be540c69c676'

* commit 'a297a266bdea9f64c6a548661aa4be540c69c676':
  Only add model in the UA for the release build
This commit is contained in:
Grace Kloba
2009-08-28 09:16:51 -07:00
committed by Android Git Automerger

View File

@@ -360,11 +360,13 @@ public class WebSettings {
// default to "en"
buffer.append("en");
}
final String model = Build.MODEL;
if (model.length() > 0) {
buffer.append("; ");
buffer.append(model);
// 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);
}
}
final String id = Build.ID;
if (id.length() > 0) {