[android] Removed previously deprecated colorToRgbaString and colorToRgbaArray (#13337)

from PropertyFactory
This commit is contained in:
Osana Babayan
2018-11-14 12:12:31 -05:00
committed by GitHub
parent 1ceea72e6d
commit 0f6f73fb9f
8 changed files with 18 additions and 74 deletions

View File

@@ -11,10 +11,10 @@ import com.mapbox.mapboxsdk.maps.MapboxMap;
import com.mapbox.mapboxsdk.style.expressions.Expression;
import com.mapbox.mapboxsdk.style.layers.FillExtrusionLayer;
import com.mapbox.mapboxsdk.style.layers.Property;
import com.mapbox.mapboxsdk.style.layers.PropertyFactory;
import com.mapbox.mapboxsdk.style.light.Light;
import com.mapbox.mapboxsdk.style.light.Position;
import com.mapbox.mapboxsdk.testapp.R;
import com.mapbox.mapboxsdk.utils.ColorUtils;
import static com.mapbox.mapboxsdk.style.expressions.Expression.eq;
import static com.mapbox.mapboxsdk.style.expressions.Expression.get;
@@ -79,7 +79,7 @@ public class BuildingFillExtrusionActivity extends AppCompatActivity {
findViewById(R.id.fabLightColor).setOnClickListener(v -> {
isRedColor = !isRedColor;
light.setColor(PropertyFactory.colorToRgbaString(isRedColor ? Color.RED : Color.BLUE));
light.setColor(ColorUtils.colorToRgbaString(isRedColor ? Color.RED : Color.BLUE));
});
}