[android] - allow literal expression property arguments

This commit is contained in:
Łukasz Paczos
2018-05-28 16:01:26 +02:00
parent 22741a0ce1
commit 4d9cd75d2d
3 changed files with 18 additions and 2 deletions

View File

@@ -3582,6 +3582,12 @@ public class Expression {
return literal;
}
@NonNull
@Override
public Object[] toArray() {
return new Object[] {"literal", literal};
}
/**
* Returns a string representation of the expression literal.
*

View File

@@ -2,7 +2,6 @@ package com.mapbox.mapboxsdk.style.layers;
import android.support.annotation.NonNull;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.mapbox.mapboxsdk.style.expressions.Expression;
import com.mapbox.mapboxsdk.utils.ThreadUtils;
@@ -27,7 +26,7 @@ public abstract class Layer {
/**
* Validates if layer interaction is happening on the UI thread
*/
protected void checkThread(){
protected void checkThread() {
ThreadUtils.checkThread("Layer");
}