David-Jackson / RoadQuality

An Android app to make roads better by crowdsourcing road quality.
MIT License
4 stars 5 forks source link

Sync FAB button state with foreground service #3

Closed David-Jackson closed 6 years ago

David-Jackson commented 6 years ago

Right now, if you start the service, and then stop the service with the notification, the change is not reflected in the fab button.

Perhaps the foreground service should send broadcasts telling when it starts and stops, and the main activity just listens for these broadcasts?