Commit 5f7b0d5a authored by Leonardo Aramaki's avatar Leonardo Aramaki

Hide channel icon when changing server, preventing RoomToolbar from inheriting...

Hide channel icon when changing server, preventing RoomToolbar from inheriting last seen channel's icon.
parent bb43f36b
......@@ -22,6 +22,7 @@ abstract class AbstractChatRoomFragment extends AbstractFragment {
}
protected void setToolbarTitle(CharSequence title) {
roomToolbar.hideChannelIcon();
roomToolbar.setTitle(title);
}
......
......@@ -92,6 +92,10 @@ public class RoomToolbar extends Toolbar {
toolbarText.setText(title);
}
public void hideChannelIcon() {
roomTypeImage.setVisibility(GONE);
}
public void showPrivateChannelIcon() {
roomTypeImage.setImageDrawable(privateChannelDrawable);
userStatusImage.setVisibility(GONE);
......
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