Layers more synchronized API #507

This commit is contained in:
Emux 2018-08-22 20:07:32 +03:00
parent 66c5e2b773
commit f07de4c910
No known key found for this signature in database
GPG Key ID: 64ED9980896038C3
2 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@
- `Parameters.POLY_SYMBOL = true;` - `Parameters.POLY_SYMBOL = true;`
- Map fractional zoom [#487](https://github.com/mapsforge/vtm/issues/487) - Map fractional zoom [#487](https://github.com/mapsforge/vtm/issues/487)
- Render theme fallback internal resources [#477](https://github.com/mapsforge/vtm/issues/477) - 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 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 PathLayer (vtm) reverse segments [#220](https://github.com/mapsforge/vtm/issues/220)
- Fix FadeStep alpha interpolation [#486](https://github.com/mapsforge/vtm/issues/486) - Fix FadeStep alpha interpolation [#486](https://github.com/mapsforge/vtm/issues/486)

View File

@ -1,6 +1,6 @@
/* /*
* Copyright 2013 Hannes Janetzek * Copyright 2013 Hannes Janetzek
* Copyright 2016-2017 devemux86 * Copyright 2016-2018 devemux86
* Copyright 2016 Andrey Novikov * Copyright 2016 Andrey Novikov
* Copyright 2017 Longri * Copyright 2017 Longri
* Copyright 2018 Gustl22 * Copyright 2018 Gustl22
@ -210,14 +210,14 @@ public final class Layers extends AbstractList<Layer> {
* *
* @return the current LayerRenderer as array. * @return the current LayerRenderer as array.
*/ */
public LayerRenderer[] getLayerRenderer() { public synchronized LayerRenderer[] getLayerRenderer() {
if (mDirtyLayers) if (mDirtyLayers)
updateLayers(); updateLayers();
return mLayerRenderer; return mLayerRenderer;
} }
void destroy() { synchronized void destroy() {
if (mDirtyLayers) if (mDirtyLayers)
updateLayers(); updateLayers();
@ -225,7 +225,7 @@ public final class Layers extends AbstractList<Layer> {
o.onDetach(); o.onDetach();
} }
boolean handleGesture(Gesture g, MotionEvent e) { synchronized boolean handleGesture(Gesture g, MotionEvent e) {
if (mDirtyLayers) if (mDirtyLayers)
updateLayers(); updateLayers();