Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 096fbe05 authored by Bart Sears's avatar Bart Sears
Browse files

Make sure we have a ";" after locale in User Agent

When in pre-release mode, we did not have a semi-colon between
the locale (i.e. "en-us") and the the Build (i.e. "Build/HRH50")

In release mode we correctly added the semi-colon (and put in
the "model") so this was only an issue when in pre-release mode.

Bug: 3215465
Change-Id: Ied1acc69463ffddabbc886e7e7e5e8cc8ab14956
parent c2b18f28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -483,11 +483,11 @@ public class WebSettings {
            // default to "en"
            buffer.append("en");
        }
        buffer.append("; ");
        // 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);
            }
        }