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

Commit 759d8529 authored by Mohammed Khider's avatar Mohammed Khider Committed by Android (Google) Code Review
Browse files

Merge "Allow interval updating when no GPS fix & scheduling not supported."

parents 58a6cf6a 300b2404
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1328,6 +1328,14 @@ public class GnssLocationProvider implements LocationProviderInterface {
            } else if (!mStarted) {
                // start GPS
                startNavigating(singleShot);
            } else {
                // GNSS Engine is already ON, but no GPS_CAPABILITY_SCHEDULING
                mAlarmManager.cancel(mTimeoutIntent);
                if (mFixInterval >= NO_FIX_TIMEOUT) {
                    // set timer to give up if we do not receive a fix within NO_FIX_TIMEOUT
                    // and our fix interval is not short
                    mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
                            SystemClock.elapsedRealtime() + NO_FIX_TIMEOUT, mTimeoutIntent);                }
            }
        } else {
            updateClientUids(new WorkSource());