am feb2b311: Merge change 22988 into eclair

Merge commit 'feb2b311c6d895d9cdab1de5bb7016eb75c41496' into eclair-plus-aosp

* commit 'feb2b311c6d895d9cdab1de5bb7016eb75c41496':
  Only add model in the UA for the release build
This commit is contained in:
Grace Kloba
2009-08-28 09:14:27 -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) {