Fix bugs in the map
Summary:
- Fix concurrent modification exception when cleaning old bus positions
- Call map.onDestroy before it is actually destroyed (fix T1371)
Test Plan:
Unknown.
Open map. See MQTT realtime positions.
App in background. Open 5 big different apps (e.g. Mindustry). Open app again. Still works.
Reviewers: valerio.bozzolan
Reviewed By: valerio.bozzolan
Subscribers: valerio.bozzolan, Libre BusTO
Tags: Libre BusTO
Maniphest Tasks: T1371
Differential Revision: https://gitpull.it/D210