diff options
author | Antonio Zugaldia <antonio@mapbox.com> | 2015-11-25 09:39:03 -0500 |
---|---|---|
committer | Antonio Zugaldia <antonio@mapbox.com> | 2015-11-25 09:39:03 -0500 |
commit | 4c9751c6e6866882a17a81603b6550bc74072440 (patch) | |
tree | 55cb0e4a5b16fe0153a3a6b2c33c5582fd3658dd /android | |
parent | 0cf326d668dc2318ca50f753c956b4532e25a288 (diff) | |
download | qtlocation-mapboxgl-4c9751c6e6866882a17a81603b6550bc74072440.tar.gz |
we just need to clear the list'
Diffstat (limited to 'android')
-rw-r--r-- | android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java b/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java index 6c225c02b6..a5758bbeef 100644 --- a/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java +++ b/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java @@ -2052,7 +2052,8 @@ public final class MapView extends FrameLayout { } } - mSelectedMarkers = new ArrayList<>(); + // Removes all selected markers from the list + mSelectedMarkers.clear(); } /** @@ -2446,7 +2447,10 @@ public final class MapView extends FrameLayout { Collections.sort(nearbyMarkers); if (nearbyMarkers == mMarkersNearLastTap) { - // TODO + + // TODO: We still need to adapt this logic to the new mSelectedMarkers list, + // though the basic functionality is there. + // the selection candidates haven't changed; cycle through them // if (mSelectedMarker != null // && (mSelectedMarker.getId() == mMarkersNearLastTap.get(mMarkersNearLastTap.size() - 1).getId())) { |