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

Commit 940453f8 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "Always use fresh NTP time for GPS" into ics-mr0

parents 842f0f45 2ffe0ad3
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -554,13 +554,8 @@ public class GpsLocationProvider implements LocationProviderInterface {

        long delay;

        // force refresh NTP cache when outdated
        if (mNtpTime.getCacheAge() >= NTP_INTERVAL) {
            mNtpTime.forceRefresh();
        }

        // only update when NTP time is fresh
        if (mNtpTime.getCacheAge() < NTP_INTERVAL) {
        // GPS requires fresh NTP time
        if (mNtpTime.forceRefresh()) {
            long time = mNtpTime.getCachedNtpTime();
            long timeReference = mNtpTime.getCachedNtpTimeReference();
            long certainty = mNtpTime.getCacheCertainty();