[AC-4601] Hyperloop Android - can't access enum values
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Needs more info |
| Resolution Date | 2016-11-21T20:16:58.000+0000 |
| Affected Version/s | Appcelerator Studio 4.5.0 |
| Fix Version/s | n/a |
| Components | Hyperloop |
| Labels | android, enum, hyperloop, undefined |
| Reporter | Rodolfo Perottoni |
| Assignee | Shak Hossain |
| Created | 2016-11-09T05:44:10.000+0000 |
| Updated | 2016-11-21T20:16:58.000+0000 |
Description
I'm trying to access a Java enum. If I execute the code below my app crashes.
*Techniques* is just a simple enum provided with an android lib that I'm trying to use.
Ti.API.error(Techniques.values()[0].getAnimator());
This is the error
Uncaught TypeError: Cannot read property 'getAnimator' of undefined
This happens with any enum. The code above works normally on native code.
Please provide a full example code, thx
Hi, Could you please try this with Hyperloop 2.0.0 on 6.0.0 GA ? If you get same issue please send a test project and steps to reproduce. Reagrds, Aminul