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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user