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

Commit b8061be8 authored by Zhentao Sun's avatar Zhentao Sun
Browse files

Passed the correct gps geofence availability value to client.

Fixed b/8967427.

Change-Id: If205b963533f096c27985476a5d487a2d090ccf8
parent 7c6ebac7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -399,8 +399,8 @@ public final class GeofenceHardwareImpl {
        boolean available = false;
        if (status == GeofenceHardware.GPS_GEOFENCE_AVAILABLE) available = true;

        int val = (available ? GeofenceHardware.MONITOR_CURRENTLY_UNAVAILABLE :
                GeofenceHardware.MONITOR_CURRENTLY_AVAILABLE);
        int val = (available ? GeofenceHardware.MONITOR_CURRENTLY_AVAILABLE :
                GeofenceHardware.MONITOR_CURRENTLY_UNAVAILABLE);
        setMonitorAvailability(GeofenceHardware.MONITORING_TYPE_GPS_HARDWARE, val);

        acquireWakeLock();