Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3579c4c6 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 27234 into eclair

* changes:
  Fix http://b/issue?id=2106682 (Don't show status if we don't have it).
parents f06e9984 69580004
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -456,8 +456,13 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList
        mPhotoView.assignContactUri(Contacts.getLookupUri(contactId, lookupKey));

        //Set the presence status
        if (!c.isNull(HEADER_PRESENCE_STATUS_COLUMN_INDEX)) {
            int presence = c.getInt(HEADER_PRESENCE_STATUS_COLUMN_INDEX);
            mPresenceView.setImageResource(Presence.getPresenceIconResourceId(presence));
            mPresenceView.setVisibility(View.VISIBLE);
        } else {
            mPresenceView.setVisibility(View.GONE);
        }
    }

    /**