[android] remove source returns reference

This commit is contained in:
Ivo van Dongen
2017-02-24 16:35:27 +02:00
committed by Ivo van Dongen
parent fedb21e35b
commit 3040d40772
5 changed files with 26 additions and 14 deletions

View File

@@ -192,7 +192,8 @@ public class RuntimeStyleTests {
mapboxMap.addSource(new VectorSource("my-source", "mapbox://mapbox.mapbox-terrain-v2"));
// Remove
mapboxMap.removeSource("my-source");
Source mySource = mapboxMap.removeSource("my-source");
assertNotNull(mySource);
assertNull(mapboxMap.getLayer("my-source"));
// Add