[TIMOB-17456] Android: ListView crashes when searchableText is not specified
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-08-22T21:15:52.000+0000 |
Affected Version/s | Release 3.3.0 |
Fix Version/s | Release 3.4.0 |
Components | Android |
Labels | module_listview, qe-manualtest |
Reporter | Hieu Pham |
Assignee | Hieu Pham |
Created | 2014-08-05T00:22:48.000+0000 |
Updated | 2014-08-22T21:15:52.000+0000 |
Description
Steps to reproduce:
var window = Ti.UI.createWindow({background: "white"});
var data = [
{ properties: { title: 'Row 1', searchableText: "row 1"} },
{ properties: { title: 'Row 2' } },
{ properties: { title: 'Row 3', searchableText: "row 3"} }
];
var section = Ti.UI.createListSection({items: data, headerTitle: "Section 1"});
var searchView = Ti.UI.Android.createSearchView();
var listView = Ti.UI.createListView({searchView: searchView, sections: [section]});
window.add(listView);
window.open();
1. Run code, type something in the search view, app crashes.
PR: https://github.com/appcelerator/titanium_mobile/pull/5949
Verified the fix. Listview does not crash when searchableText is not specified. Closing. Environment: Appc Studio : 3.4.0.201408210941 Ti SDK : 3.4.0.v20140821144114 Mac OSX : 10.8.5 Alloy : 1.5.0-dev CLI - 3.4.0-dev Code Processor: 1.1.1 Nexus 5 - android 4.4.4