OSDN Git Service

Include Google Talk presence, even when missing Im rows.
authorJeff Sharkey <jsharkey@android.com>
Fri, 2 Oct 2009 04:32:19 +0000 (21:32 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 6 Oct 2009 20:10:17 +0000 (13:10 -0700)
commit624ddc3cce02e3d9216e87564766fd86e814675d
tree580256dbba62f551ad5c2b4b949db5e3ebe3428b
parentd40d7f06ba0d87d2c1e78f382ce78c3c8a25fbfc
Include Google Talk presence, even when missing Im rows.

When inserting Google Talk presence updates, we match on
both Im and Email rows.  This change adds presence "dots"
to individual Im rows, and creates in-memory Im rows when
Email entries have presence.

This loads status details through a second query and holds
back building UI until both queries finish.  This change
also generalizes logic for building Im intents borrowed
from FastTrack code.

This change also fixes a regression that was dropping third-
party data rows.  The second-query approach above allows us
to remove a large chunk of code that was using old API.

Fixes http://b/2161796
res/layout-finger/contacts_list_item.xml
res/layout-finger/contacts_list_item_photo.xml
res/layout-finger/list_item_text_icons.xml
res/layout-finger/recent_calls_list_item.xml
src/com/android/contacts/ContactsUtils.java
src/com/android/contacts/ViewContactActivity.java
src/com/android/contacts/model/ContactsSource.java
src/com/android/contacts/model/ExternalSource.java
src/com/android/contacts/ui/QuickContactWindow.java
src/com/android/contacts/util/DataStatus.java [new file with mode: 0644]