[TIMOB-4125] Android: String/Text Properties on Proxies Initial Value Should be ''. The Empty String
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-06-13T09:20:06.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Sprint 2011-23, Release 1.7.2, Release 1.8.0 |
Components | Android |
Labels | n/a |
Reporter | Don Thorp |
Assignee | Opie Cyrus |
Created | 2011-05-17T16:10:29.000+0000 |
Updated | 2011-07-06T16:51:05.000+0000 |
Description
A community member brought up the discussion that Android text proxies, specifically SearchBar.value, was returning '' for iOS and undefined for Android. Group API discussion ensued and we are stating that the initial values should be '' (the empty string) for Label.text, TextField.value, TextArea.value, and Button.title. Other fields may get added to this list over time.
The proxies should be initialized so they they contain "" instead of undefined for the listed controls.
Don tested via drillbit on Eris 2.1. Marshall tested via 2.2 emulator.
merged onto 1_7_X
Tested with 1.7.2.v20110630161836, verified that none are returning undefined, drillbit case is in 1.8 only. Titanium.UI.setBackgroundColor('#000'); var win1 = Titanium.UI.createWindow({ title:'Bug 4125', backgroundColor:'#fff' }); var label = Ti.UI.createLabel(); var field = Ti.UI.createTextField(); var area = Ti.UI.createTextArea(); var search = Ti.UI.createSearchBar(); var button = Ti.UI.createButton(); var label1 = Titanium.UI.createLabel({ text:'Label.text: ' + label.text + '\nTextField.value:' + field.value + '\nTextArea.value:' + area.value + '\nSearchBar.value:' + search.value + '\nButton.value:' + button.title + '\nPass if none are undefined' }); win1.add(label1); win1.open();