switch (status) {
case Presence.AVAILABLE:
return Im.Presence.AVAILABLE;
case Presence.AWAY:
return Im.Presence.AWAY;
case Presence.DO_NOT_DISTURB:
return Im.Presence.DO_NOT_DISTURB;
case Presence.IDLE:
return Im.Presence.IDLE;
case Presence.OFFLINE:
return Im.Presence.OFFLINE;
default:
Log.w(ImApp.LOG_TAG, "[ContactView] Unknown presence status " + status);
return Im.Presence.AVAILABLE;
}