From 098e95d6393e1a3629d9bffa3158bcc2c86439af Mon Sep 17 00:00:00 2001 From: Gary Mathews Date: Fri, 25 Jan 2019 15:44:54 -0800 Subject: [PATCH] fix(android): fix PolygonProxy holes property --- android/src/ti/map/PolygonProxy.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/android/src/ti/map/PolygonProxy.java b/android/src/ti/map/PolygonProxy.java index cae9b9ba..485328a8 100644 --- a/android/src/ti/map/PolygonProxy.java +++ b/android/src/ti/map/PolygonProxy.java @@ -29,7 +29,7 @@ { MapModule.PROPERTY_FILL_COLOR, MapModule.PROPERTY_STROKE_COLOR, MapModule.PROPERTY_STROKE_WIDTH, - MapModule.PROPERTY_ZINDEX, MapModule.PROPERTY_POINTS, PolygonProxy.PROPERTY_HOLES, + MapModule.PROPERTY_ZINDEX, MapModule.PROPERTY_POINTS, TiC.PROPERTY_TOUCH_ENABLED }) @@ -232,12 +232,18 @@ public PolygonOptions getOptions() return options; } - @Kroll.method + @Kroll.setProperty public void setHoles(Object[] holesList) { TiMessenger.sendBlockingMainMessage(getMainHandler().obtainMessage(MSG_SET_HOLES), holesList); } + @Kroll.getProperty + public Object[] getHoles() + { + return (Object[])getProperty(PolygonProxy.PROPERTY_HOLES); + } + public void setPolygon(Polygon r) { polygon = r; @@ -253,10 +259,10 @@ public boolean getClickable() return clickable; } - public List> getHoles() + /*public List> getHoles() { return polygon.getHoles(); - } + }*/ @Override public void onPropertyChanged(String name, Object value)