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

Commit 75bc860d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Settings: Display null sub-item value when do AGPS acquisition parameter"

parents 23369389 dbec8693
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -540,6 +540,18 @@ public class GpsLocationProvider implements LocationProviderInterface {

            mSuplServerHost = mProperties.getProperty("SUPL_HOST");
            String portString = mProperties.getProperty("SUPL_PORT");

            ContentResolver objContentResolver = mContext.getContentResolver();
            if (Settings.Global.getString(objContentResolver,
                    ASSISTED_GPS_SUPL_HOST) == null
                    || Settings.Global.getString(objContentResolver,
                           ASSISTED_GPS_SUPL_PORT) == null) {
                Settings.Global.putString(objContentResolver,
                        ASSISTED_GPS_SUPL_HOST, mSuplServerHost);
                Settings.Global.putString(objContentResolver,
                        ASSISTED_GPS_SUPL_PORT, portString);
            }

            if (mSuplServerHost != null && portString != null) {
                try {
                    mSuplServerPort = Integer.parseInt(portString);