ItemizedLayer synchronized API, fix #507

This commit is contained in:
Emux
2018-02-20 15:53:45 +02:00
parent e108e6e3d7
commit e85e056a0c
4 changed files with 18 additions and 17 deletions

View File

@@ -179,7 +179,7 @@ public class ItemizedOverlayWithBubble<Item extends MarkerItem> extends
}
@Override
public boolean removeItem(final Item item) {
public synchronized boolean removeItem(final Item item) {
boolean result = super.removeItem(item);
if (mItemWithBubble == item) {
hideBubble();
@@ -188,7 +188,7 @@ public class ItemizedOverlayWithBubble<Item extends MarkerItem> extends
}
@Override
public void removeAllItems() {
public synchronized void removeAllItems() {
super.removeAllItems();
hideBubble();
}