Only listen to connectivity broadcast events when needed (#8222)
* [android] - only listen to connectivity change events when needed. * [android] - fix compile var args warning, remove redundant test
This commit is contained in:
@@ -80,7 +80,7 @@ public class CircleLayerActivity extends AppCompatActivity {
|
||||
public void onClick(View view) {
|
||||
|
||||
// filter out stops for our route
|
||||
layer.setFilter(in("number", STOPS_FOR_ROUTE));
|
||||
layer.setFilter(in("number", (Object[]) STOPS_FOR_ROUTE));
|
||||
|
||||
// add route as a line
|
||||
try {
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
package com.mapbox.mapboxsdk.constants;
|
||||
|
||||
|
||||
import com.mapbox.mapboxsdk.testapp.model.constants.AppConstant;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
public class StyleVersionTest {
|
||||
|
||||
private static final double DELTA = 1e-15;
|
||||
|
||||
@Test
|
||||
public void testSanity() {
|
||||
assertEquals("Style version should match, when upgrading, verify that integers.xml is updated",
|
||||
AppConstant.STYLE_VERSION,
|
||||
9,
|
||||
DELTA);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user