Commit b0c40267 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Hide all icons from toolbar on opening it. Useful when changing servers

parent 0f2b98df
...@@ -22,7 +22,7 @@ abstract class AbstractChatRoomFragment extends AbstractFragment { ...@@ -22,7 +22,7 @@ abstract class AbstractChatRoomFragment extends AbstractFragment {
} }
protected void setToolbarTitle(CharSequence title) { protected void setToolbarTitle(CharSequence title) {
roomToolbar.hideChannelIcon(); roomToolbar.hideChannelIcons();
roomToolbar.setTitle(title); roomToolbar.setTitle(title);
} }
......
...@@ -92,8 +92,9 @@ public class RoomToolbar extends Toolbar { ...@@ -92,8 +92,9 @@ public class RoomToolbar extends Toolbar {
toolbarText.setText(title); toolbarText.setText(title);
} }
public void hideChannelIcon() { public void hideChannelIcons() {
roomTypeImage.setVisibility(GONE); roomTypeImage.setVisibility(GONE);
userStatusImage.setVisibility(GONE);
} }
public void showPrivateChannelIcon() { public void showPrivateChannelIcon() {
......
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