Merge "Passed the correct gps geofence availability value to client." into jb-mr2-dev

This commit is contained in:
Zhentao Sun
2013-05-14 23:51:16 +00:00
committed by Android (Google) Code Review

View File

@@ -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();