Avoid IllegalArgumentException - Only fetch display name in getOwnerName()

This commit is contained in:
cketti 2011-01-25 02:29:31 +00:00
parent 57be868668
commit de9f04ea0d
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ public class ContactsSdk3_4 extends com.fsck.k9.helper.Contacts
String name = null;
final Cursor c = mContentResolver.query(
Uri.withAppendedPath(Contacts.People.CONTENT_URI, "owner"),
PROJECTION,
new String[] {Contacts.ContactMethods.DISPLAY_NAME},
null,
null,
null);
@ -101,7 +101,7 @@ public class ContactsSdk3_4 extends com.fsck.k9.helper.Contacts
if (c.getCount() > 0)
{
c.moveToFirst();
name = getName(c);
name = c.getString(0); // owner's display name
}
c.close();
}