Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17456] Android: ListView crashes when searchableText is not specified

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-08-22T21:15:52.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 3.4.0
ComponentsAndroid
Labelsmodule_listview, qe-manualtest
ReporterHieu Pham
AssigneeHieu Pham
Created2014-08-05T00:22:48.000+0000
Updated2014-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.

Comments

  1. Hieu Pham 2014-08-05

    PR: https://github.com/appcelerator/titanium_mobile/pull/5949
  2. Lokesh Choudhary 2014-08-22

    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

JSON Source