Allows for setting the user location icon to transparent (#7393)

* allows for setting the user location icon to transparent

* removed color check
This commit is contained in:
Cameron Mace
2016-12-14 12:51:04 -05:00
committed by GitHub
parent 8f24119bd0
commit 3d5983f6f6
6 changed files with 73 additions and 25 deletions

View File

@@ -74,6 +74,13 @@ public class MyLocationViewSettingsTest {
assertEquals("color should match", color, locationViewSettings.getForegroundTintColor());
}
@Test
public void testForegroundTransparentTint() {
int color = Color.TRANSPARENT;
locationViewSettings.setForegroundTintColor(Color.TRANSPARENT);
assertEquals("color should match", color, locationViewSettings.getForegroundTintColor());
}
@Test
public void testBackgroundTint() {
int color = Color.RED;
@@ -81,6 +88,13 @@ public class MyLocationViewSettingsTest {
assertEquals("color should match", color, locationViewSettings.getBackgroundTintColor());
}
@Test
public void testBackgroundTransparentTint() {
int color = Color.TRANSPARENT;
locationViewSettings.setBackgroundTintColor(Color.TRANSPARENT);
assertEquals("color should match", color, locationViewSettings.getBackgroundTintColor());
}
@Test
public void testEnabled() {
assertFalse("initial state should be false", locationViewSettings.isEnabled());