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

Commit cf504c40 authored by Doug Zongker's avatar Doug Zongker
Browse files

change remaining frameworks/base Gservices to Secure settings

Change-Id: I61bdb05a2526523700c2833154d5a4133881ef10
parent 072ba687
Loading
Loading
Loading
Loading
+3 −13
Original line number Diff line number Diff line
@@ -339,19 +339,9 @@ public final class AndroidHttpClient implements HttpClient {
     * Shorter data will not be compressed.
     */
    public static long getMinGzipSize(ContentResolver resolver) {
        String sMinGzipBytes = Settings.Gservices.getString(resolver,
                Settings.Gservices.SYNC_MIN_GZIP_BYTES);

        if (!TextUtils.isEmpty(sMinGzipBytes)) {
            try {
                return Long.parseLong(sMinGzipBytes);
            } catch (NumberFormatException nfe) {
                Log.w(TAG, "Unable to parse " +
                        Settings.Gservices.SYNC_MIN_GZIP_BYTES + " " +
                        sMinGzipBytes, nfe);
            }
        }
        return DEFAULT_SYNC_MIN_GZIP_BYTES;
        return Settings.Secure.getLong(resolver,
                                       Settings.Secure.SYNC_MIN_GZIP_BYTES,
                                       DEFAULT_SYNC_MIN_GZIP_BYTES);
    }

    /* cURL logging support. */