am 3579c4c6: Merge change 27234 into eclair
Merge commit '3579c4c6729dd8aa077550531a8337bf0664b23d' into eclair-plus-aosp * commit '3579c4c6729dd8aa077550531a8337bf0664b23d': Fix http://b/issue?id=2106682 (Don't show status if we don't have it).
This commit is contained in:
@@ -456,8 +456,13 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList
|
|||||||
mPhotoView.assignContactUri(Contacts.getLookupUri(contactId, lookupKey));
|
mPhotoView.assignContactUri(Contacts.getLookupUri(contactId, lookupKey));
|
||||||
|
|
||||||
//Set the presence status
|
//Set the presence status
|
||||||
int presence = c.getInt(HEADER_PRESENCE_STATUS_COLUMN_INDEX);
|
if (!c.isNull(HEADER_PRESENCE_STATUS_COLUMN_INDEX)) {
|
||||||
mPresenceView.setImageResource(Presence.getPresenceIconResourceId(presence));
|
int presence = c.getInt(HEADER_PRESENCE_STATUS_COLUMN_INDEX);
|
||||||
|
mPresenceView.setImageResource(Presence.getPresenceIconResourceId(presence));
|
||||||
|
mPresenceView.setVisibility(View.VISIBLE);
|
||||||
|
} else {
|
||||||
|
mPresenceView.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user