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:
Tobrun
2017-03-01 09:46:47 -05:00
committed by GitHub
parent a46a57027e
commit f44e4eb2de
5 changed files with 48 additions and 73 deletions

View File

@@ -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 {

View File

@@ -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);
}
}