mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Avoid IllegalArgumentException - Only fetch display name in getOwnerName()
This commit is contained in:
parent
57be868668
commit
de9f04ea0d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user