Layers more synchronized API #507
This commit is contained in:
parent
66c5e2b773
commit
f07de4c910
@ -22,7 +22,7 @@
|
||||
- `Parameters.POLY_SYMBOL = true;`
|
||||
- Map fractional zoom [#487](https://github.com/mapsforge/vtm/issues/487)
|
||||
- Render theme fallback internal resources [#477](https://github.com/mapsforge/vtm/issues/477)
|
||||
- Fix ItemizedLayer synchronization [#507](https://github.com/mapsforge/vtm/issues/507)
|
||||
- Fix layers synchronization [#507](https://github.com/mapsforge/vtm/issues/507)
|
||||
- Fix Mapsforge clipping on small zooms [#264](https://github.com/mapsforge/vtm/issues/264)
|
||||
- Fix PathLayer (vtm) reverse segments [#220](https://github.com/mapsforge/vtm/issues/220)
|
||||
- Fix FadeStep alpha interpolation [#486](https://github.com/mapsforge/vtm/issues/486)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2013 Hannes Janetzek
|
||||
* Copyright 2016-2017 devemux86
|
||||
* Copyright 2016-2018 devemux86
|
||||
* Copyright 2016 Andrey Novikov
|
||||
* Copyright 2017 Longri
|
||||
* Copyright 2018 Gustl22
|
||||
@ -210,14 +210,14 @@ public final class Layers extends AbstractList<Layer> {
|
||||
*
|
||||
* @return the current LayerRenderer as array.
|
||||
*/
|
||||
public LayerRenderer[] getLayerRenderer() {
|
||||
public synchronized LayerRenderer[] getLayerRenderer() {
|
||||
if (mDirtyLayers)
|
||||
updateLayers();
|
||||
|
||||
return mLayerRenderer;
|
||||
}
|
||||
|
||||
void destroy() {
|
||||
synchronized void destroy() {
|
||||
if (mDirtyLayers)
|
||||
updateLayers();
|
||||
|
||||
@ -225,7 +225,7 @@ public final class Layers extends AbstractList<Layer> {
|
||||
o.onDetach();
|
||||
}
|
||||
|
||||
boolean handleGesture(Gesture g, MotionEvent e) {
|
||||
synchronized boolean handleGesture(Gesture g, MotionEvent e) {
|
||||
if (mDirtyLayers)
|
||||
updateLayers();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user