[android] remove layer returns reference

This commit is contained in:
Ivo van Dongen
2017-02-24 16:26:38 +02:00
committed by Ivo van Dongen
parent 609cdb0fd7
commit fedb21e35b
4 changed files with 20 additions and 12 deletions

View File

@@ -147,7 +147,8 @@ public class RuntimeStyleTests {
assertNotNull(mapboxMap.getLayer("building"));
// Remove
mapboxMap.removeLayer("building");
Layer building = mapboxMap.removeLayer("building");
assertNotNull(building);
assertNull(mapboxMap.getLayer("building"));
// Add