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

Commit 69580004 authored by Evan Millar's avatar Evan Millar
Browse files

Fix http://b/issue?id=2106682 (Don't show status if we don't have it).

Change-Id: I1636914ef47fc5319f2593d3e7aea33e523be3c7
parent bf07e032
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);
        }
    }

    /**