[android] add api to enable/disable tile prefetching
This commit is contained in:
committed by
Ivo van Dongen
parent
c0dd1103e0
commit
c5300ebabf
@@ -186,5 +186,15 @@ public class MapboxMapOptionsTest {
|
||||
assertEquals(Color.BLUE, new MapboxMapOptions()
|
||||
.myLocationBackgroundTintColor(Color.BLUE).getMyLocationBackgroundTintColor());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPrefetchesTiles() {
|
||||
// Default value
|
||||
assertTrue(new MapboxMapOptions().getPrefetchesTiles());
|
||||
|
||||
// Check mutations
|
||||
assertTrue(new MapboxMapOptions().setPrefetchesTiles(true).getPrefetchesTiles());
|
||||
assertFalse(new MapboxMapOptions().setPrefetchesTiles(false).getPrefetchesTiles());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user