[TIMOB-6970] Android: Add float[] type support in Kroll
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-02-10T00:04:45.000+0000 |
| Affected Version/s | Release 1.8.0.1 |
| Fix Version/s | Sprint 2012-01, Release 2.0.0, Release 1.8.1 |
| Components | Android |
| Labels | n/a |
| Reporter | Hieu Pham |
| Assignee | Hieu Pham |
| Created | 2012-01-03T17:43:14.000+0000 |
| Updated | 2012-02-10T00:04:45.000+0000 |
Description
We don't currently support float[] return values in @Kroll.methods (it needs to be added to ProxyBinding.fm)
Testing steps: 1. Add this method to Ti2DMatrix.java:
2. scons 3. run simple titanium app with:@Kroll.method public float[] floatValues(float val) { float[] result = new float[1]; result[0] = val; return result; }4. Look at log for result.var matrix1 = Ti.UI.create2DMatrix(); var t = matrix1.floatValues(10); Ti.API.debug("t is " + t[0] + " .. should be 10");Reopening and closing this issue to update label and Fix Version field.