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

Commit 377ac63a authored by David Christie's avatar David Christie Committed by Android (Google) Code Review
Browse files

Merge "Ensure GeofenceHardware will return capabilities for old implementations."

parents 205bbc40 b8084400
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -239,8 +239,13 @@ public final class GeofenceHardwareImpl {
                    case GeofenceHardware.MONITORING_TYPE_GPS_HARDWARE:
                        return CAPABILITY_GNSS;
                    case GeofenceHardware.MONITORING_TYPE_FUSED_HARDWARE:
                        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;
        }
        return 0;