[TIMOB-3529] Android: Ti.Properties do not accept "undefined" as value
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Won't Do |
Resolution Date | 2019-11-14T23:08:43.000+0000 |
Affected Version/s | Release 2.0.2 |
Fix Version/s | n/a |
Components | Android |
Labels | api, exalture, parity |
Reporter | Pedro Enrique |
Assignee | Unknown |
Created | 2011-04-15T03:46:20.000+0000 |
Updated | 2019-11-14T23:08:58.000+0000 |
Description
This is feature request to allow "undefined" to be set as part of Ti.Properties, specifically the setBool and getBool. This works fine on iOS but does not on Android. Currently getBool accepts "true", "false" and "null".
There is a http://support.appcelerator.com/tickets/BUQ-42972-167/homepage ticket asking for this.
setting undefined should have the same effect as setting to
null
The following code works fine on iOS, but on Android it crashes (tested with a Samsung Galaxy S2, TiSDK 2.0.2GA):
https://github.com/appcelerator/titanium_mobile/pull/4035
New pull request added https://github.com/appcelerator/titanium_mobile/pull/4600
The PR doesn't address parity since iOS behaves differently for 'undefined' values. This is part of a larger issue that would require discussion between all the platforms. Bumping it out of 3.2.0
Closing per comments.