Commit b00237ca authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update AbstractChatRoomFragment.java

parent 81d61b2f
...@@ -33,7 +33,10 @@ abstract class AbstractChatRoomFragment extends AbstractFragment { ...@@ -33,7 +33,10 @@ abstract class AbstractChatRoomFragment extends AbstractFragment {
roomToolbar.showPublicChannelIcon(); roomToolbar.showPublicChannelIcon();
} }
protected void showToolbarUserStatuslIcon(String status) { protected void showToolbarUserStatuslIcon(@Nullable String status) {
if (status == null) {
roomToolbar.showUserStatusIcon(RoomToolbar.STATUS_OFFLINE);
} else {
switch (status) { switch (status) {
case User.STATUS_ONLINE: case User.STATUS_ONLINE:
roomToolbar.showUserStatusIcon(RoomToolbar.STATUS_ONLINE); roomToolbar.showUserStatusIcon(RoomToolbar.STATUS_ONLINE);
...@@ -52,4 +55,5 @@ abstract class AbstractChatRoomFragment extends AbstractFragment { ...@@ -52,4 +55,5 @@ abstract class AbstractChatRoomFragment extends AbstractFragment {
break; break;
} }
} }
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment