I noticed that when I changed the overlay between 2 customs the icon didn't update.
There was even the beginnings of a fix in the code, but that doesn't change anything because it wasn't a view refresh problem.
This is due to the fact that the reference was not changed because there is only one instance in the OverlayRegistry.
[x] So I've changed it to use a reference on the objects.
[x] I've also removed the need to always look at the prefs (pref level is not recommended by google and it's not even asynchronous).
I hope it won't be a problem during the rebases with SC
I noticed that when I changed the overlay between 2 customs the icon didn't update. There was even the beginnings of a fix in the code, but that doesn't change anything because it wasn't a view refresh problem.
This is due to the fact that the reference was not changed because there is only one instance in the OverlayRegistry.
I hope it won't be a problem during the rebases with SC