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
This commit is contained in:
Lifu Tang
2017-10-31 16:29:35 -07:00
parent 1b901ca773
commit ff2f40fc85

View File

@@ -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,