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

Commit ff2f40fc authored by Lifu Tang's avatar Lifu Tang
Browse files

Fix for incorrect proximity alert interval setting

LOCATION_BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS
should be used as the value for proximity alert interval.
However, LOCATION_BACKGROUND_THROTTLE_INTERVAL_MS is used
instead.

Bug: 64937144
Bug: 36197768
Test: manual
Change-Id: I589c5eecc2f331992cd057364b472afeb8bde756
parent 1b901ca7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -145,7 +145,8 @@ public class GeofenceManager implements LocationListener, PendingIntent.OnFinish
     */
    private void updateMinInterval() {
        mEffectiveMinIntervalMs = Settings.Global.getLong(mResolver,
                Settings.Global.LOCATION_BACKGROUND_THROTTLE_INTERVAL_MS, DEFAULT_MIN_INTERVAL_MS);
                Settings.Global.LOCATION_BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS,
                DEFAULT_MIN_INTERVAL_MS);
    }

    public void addFence(LocationRequest request, Geofence geofence, PendingIntent intent,