[TIMOB-14562] Android : Missing safeguard from TiUIView's 'doSetClickable'
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 3.1.0 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | android, sdk |
| Reporter | Meenakshi Pathak |
| Assignee | Unknown |
| Created | 2013-07-16T10:57:57.000+0000 |
| Updated | 2018-02-28T20:03:33.000+0000 |
Description
This line:
https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/view/TiUIView.java#L1457
causes an exception if "view" is an AdapterView. This issue is noted and dealt with 4 lines later starting here:
https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/view/TiUIView.java#L1461
The same safeguard should be applied to the first branch of the "if" block.
No comments