Skip to content

Commit b16c8e8

Browse files
committed
Merge branch '161-add-onlyonlinestations-filter-when-requesting-cofu-stations' into 'master'
Resolve "Add onlyOnlineStations filter when requesting cofu stations" Closes #161 See merge request pace/mobile/android/pace-cloud-sdk!153
2 parents bac5169 + 369b2bf commit b16c8e8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ x.y.z Release notes (yyyy-MM-dd)
22
=============================================================
33

44
<!-- ### Breaking Changes - Include, if needed -->
5-
<!-- ### Enhancements - Include, if needed -->
5+
6+
### Enhancements
7+
8+
* Change `requestCofuGasStations()` to return all cofu stations (online and offline)
9+
610
### Fixes
711

812
* Fix Fueling PWA URLs for non-prod environment

library/src/main/java/cloud/pace/sdk/appkit/geo/GeoAPIManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class GeoAPIManagerImpl(
105105

106106
POIKit.requestGasStations(locations) { gasStations ->
107107
when (gasStations) {
108-
is Success -> completion(Result.success(gasStations.result.filter { it.isConnectedFuelingAvailable == true }))
108+
is Success -> completion(Result.success(gasStations.result.filter { gasStation -> cofuGasStations.any { it.id == gasStation.id } }))
109109
is Failure -> completion(Result.failure(gasStations.throwable))
110110
}
111111
}

0 commit comments

Comments
 (0)