francoisfds / BikeSharingHub

Shared bikes for Android
GNU General Public License v3.0
18 stars 10 forks source link

Widget is not handling several networks #52

Closed Altonss closed 1 year ago

Altonss commented 1 year ago

Widget doesn't handle several networks selected:

francoisfds commented 1 year ago

Hi. Indeed I just figured out that the source code requesting citybik.es is duplicated twice : inside the main view and inside the widget. The support for multiple networks was added only once, so the widget uses the old code (which overrites the embedded list of stations). I think we need to streamline the code in a single Service to avoid reporting every modification twice.

francoisfds commented 1 year ago

Since version 2.1.1, the widget is refreshing all the networks that are monitored. I close the issue 😉

Altonss commented 1 year ago

Thanks! It works great now :)