[TIMOB-12777] Android: Ti.Contacts.getAllPeople() does not work if contacts have no group
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-03-22T22:47:38.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 3.1.0, 2013 Sprint 06 API, 2013 Sprint 06 |
| Components | Android |
| Labels | module_media, qe-closed-3.1.0, qe-testadded |
| Reporter | Davide Cassenti |
| Assignee | Ping Wang |
| Created | 2013-02-18T15:10:29.000+0000 |
| Updated | 2013-10-07T09:35:16.000+0000 |
Test case:
For FR, run the above code on Samsung Galaxy S3 with and without the fix to see the different results. **Note:** Before the fix, if the contact is a Google contact and has no Group associated, getAllPeople() can not find it.var people = Ti.Contacts.getAllPeople(); alert("people.length = " + people.length); for(var i=0; i<people.length; i++) { Ti.API.info("************* id: " + people[i].id); }PR: https://github.com/appcelerator/titanium_mobile/pull/4001
Verified With - SDK - 3.1.0.v20130409124549 Appcelerator Studio - 3.1.0.201304091724 OS - Montain Lion (v10.8) Device - Samsung Galaxy S3 (v4.0.4) Verified this issue. Now its working as expected. Hence closing this issue.