[folks] eds: fix Android favourite handling when creating contact
- From: Patrick Ohly <pohly src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] eds: fix Android favourite handling when creating contact
- Date: Mon, 18 Feb 2013 11:25:58 +0000 (UTC)
commit dcc558d87d113dae0aa8721db3d80261c08dee57
Author: Patrick Ohly <patrick ohly intel com>
Date: Mon Feb 18 12:19:08 2013 +0100
eds: fix Android favourite handling when creating contact
When processing PersonaDetail.GROUPS before PersonaDetail.IS_FAVOURITE
while creating a new contact in EDS, the special code for adding the
contact to the âStarred in Androidâ group (bgo#661490 was skipped). We
must go through _set_is_favourite instead of _set_contact_is_favourite
to get that part done, too.
NEWS | 2 ++
backends/eds/lib/edsf-persona-store.vala | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index eab9855..aaac367 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ Dependencies:
Major changes:
Bugs fixed:
+â Bug 693333 - eds: creating a contact with specific groups and
+ fix "favourite" group setting for Android
API changes:
diff --git a/backends/eds/lib/edsf-persona-store.vala b/backends/eds/lib/edsf-persona-store.vala
index 1fb875b..16503ac 100644
--- a/backends/eds/lib/edsf-persona-store.vala
+++ b/backends/eds/lib/edsf-persona-store.vala
@@ -547,7 +547,9 @@ public class Edsf.PersonaStore : Folks.PersonaStore
PersonaDetail.IS_FAVOURITE))
{
is_fav = v.get_boolean ();
- this._set_contact_is_favourite (contact, is_fav);
+ // Use _set_is_favourite here to get the contact added
+ // to the Android "favourite" group.
+ this._set_is_favourite (contact, is_fav);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]