Merge change 22988 into eclair

* changes:
  Only add model in the UA for the release build
This commit is contained in:
Android (Google) Code Review
2009-08-28 09:12:28 -07:00

View File

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