diff options
| author | 2015-04-15 00:30:42 +0000 | |
|---|---|---|
| committer | 2015-04-15 00:30:43 +0000 | |
| commit | 377ac63a07e3312ae1e8bfa85415539fce2677c5 (patch) | |
| tree | cc587e788ca228373a53c67fbf76c5a12658d613 | |
| parent | 205bbc40b4a3046ca3dba256535f0322f5b336e9 (diff) | |
| parent | b80844001442bde6189015b01dc9c6f87a898560 (diff) | |
Merge "Ensure GeofenceHardware will return capabilities for old implementations."
| -rw-r--r-- | core/java/android/hardware/location/GeofenceHardwareImpl.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/hardware/location/GeofenceHardwareImpl.java b/core/java/android/hardware/location/GeofenceHardwareImpl.java index b34c9fbb7948..ee2d43ce45f3 100644 --- a/core/java/android/hardware/location/GeofenceHardwareImpl.java +++ b/core/java/android/hardware/location/GeofenceHardwareImpl.java @@ -239,7 +239,12 @@ public final class GeofenceHardwareImpl { case GeofenceHardware.MONITORING_TYPE_GPS_HARDWARE: return CAPABILITY_GNSS; case GeofenceHardware.MONITORING_TYPE_FUSED_HARDWARE: - return mCapabilities; + if (mVersion >= FIRST_VERSION_WITH_CAPABILITIES) { + return mCapabilities; + } + // This was the implied capability on old FLP HAL versions that didn't + // have the capability callback. + return CAPABILITY_GNSS; } break; } |