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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user