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

Commit 913dc635 authored by shibom's avatar shibom Committed by Gerrit - the friendly Code Review server
Browse files

Settings: Add Agps start mode to setting database

Add Agps start mode to setting database

CRs-Fixed: 745373

Change-Id: I6d9e86969fce1489855f4d2c0c66eba954659ef1
parent fb8b07b2
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -312,19 +312,16 @@ public class AgpsSettings extends PreferenceActivity
        bundle.putString(STRING_SUPL_PORT, checkNotSet(mPort.getText()));
        bundle.putString(STRING_PROVIDER_ID, mAssistedType);
        bundle.putString(STRING_ACCESS_NETWORK, mNetworkType);
        SetValue(bundle);

        if ( mResetType.compareTo(AGPS_START_MODE_HOT) == 0 ) {
            bundle.putString(STRING_AGPS_RESET_TYPE, "2");
            bundle.putString(STRING_AGPS_RESET_TYPE, AGPS_START_MODE_HOT);
        } else if ( mResetType.compareTo(AGPS_START_MODE_WARM) == 0 ) {
            bundle.putString(STRING_AGPS_RESET_TYPE, "1");
            bundle.putString(STRING_AGPS_RESET_TYPE, AGPS_START_MODE_WARM);
        } else {
            bundle.putString(STRING_AGPS_RESET_TYPE, "0");
            bundle.putString(STRING_AGPS_RESET_TYPE, AGPS_START_MODE_COLD);
        }
        LocationManager objLocManager = (LocationManager)
                                        getSystemService(Context.LOCATION_SERVICE);
        boolean bRet = objLocManager.sendExtraCommand(LocationManager.GPS_PROVIDER,
                "agps_parms_changed", bundle);
        Log.d(TAG, "sendExtraCommand ret=" + bRet);

        SetValue(bundle);
    }

    private void restoreAgpsParam() {