[android] #5978 - fix number property filters [ci skip]

This commit is contained in:
Ivo van Dongen
2016-08-12 12:09:38 -04:00
parent e147887e35
commit ddf0d25845
5 changed files with 21 additions and 6 deletions

View File

@@ -307,8 +307,15 @@ public class RuntimeStyleActivity extends AppCompatActivity {
PropertyValue<String> fillColor = layer.getFillColor();
Function<String> function = fillColor.getFunction();
Log.d(TAG, "Fill color base: " + function.getBase());
Log.d(TAG, "Fill color #stops: " + function.getStops().length);
if (function != null) {
Log.d(TAG, "Fill color base: " + function.getBase());
Log.d(TAG, "Fill color #stops: " + function.getStops().length);
if (function.getStops() != null) {
for (Stop stop : function.getStops()) {
Log.d(TAG, "Fill color #stops: " + stop);
}
}
}
}
private String readRawResource(@RawRes int rawResource) throws IOException {