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

Commit ac7927c1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "GnssLocationProvider: modify "=" restriction to support URL with "=" inside"

parents 30d62ee0 ad48bd9f
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -669,9 +669,11 @@ public class GnssLocationProvider implements LocationProviderInterface {
        for (String item : configValues) {
            if (DEBUG) Log.d(TAG, "GpsParamsResource: " + item);
            // We need to support "KEY =", but not "=VALUE".
            String[] split = item.split("=");
            if (split.length == 2) {
                properties.setProperty(split[0].trim().toUpperCase(), split[1]);
            int index = item.indexOf("=");
            if (index > 0 && index + 1 < item.length()) {
                String key = item.substring(0, index);
                String value = item.substring(index + 1);
                properties.setProperty(key.trim().toUpperCase(), value);
            } else {
                Log.w(TAG, "malformed contents: " + item);
            }