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

Commit 9e2a8235 authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Enable REQUEST_LOCATION from GNSS HAL

- Set the default duration to be 10 seconds.

Bug: 110054263
Test: built and verified on device that it is enabled.
Change-Id: Ib49ffba3f2b1a85d6aa0e323b4cda4d238bd913b
parent f910fdb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -254,7 +254,7 @@ public class GnssLocationProvider implements LocationProviderInterface, InjectNt
    // 1 second, or 1 Hz frequency.
    private static final long LOCATION_UPDATE_MIN_TIME_INTERVAL_MILLIS = 1000;
    // Default update duration in milliseconds for REQUEST_LOCATION.
    private static final long LOCATION_UPDATE_DURATION_MILLIS = 0;
    private static final long LOCATION_UPDATE_DURATION_MILLIS = 10 * 1000;

    /** simpler wrapper for ProviderRequest + Worksource */
    private static class GpsRequest {