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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user