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

Update UnreadRoomListHeader.java

parent 78947080
......@@ -2,8 +2,8 @@ package chat.rocket.android.layouthelper.chatroom.roomlist;
import android.support.annotation.NonNull;
import chat.rocket.core.models.RoomSidebar;
import java.util.List;
import chat.rocket.core.models.Room;
public class UnreadRoomListHeader implements RoomListHeader {
......@@ -19,18 +19,17 @@ public class UnreadRoomListHeader implements RoomListHeader {
}
@Override
public boolean owns(Room room) {
return room.isAlert();
public boolean owns(RoomSidebar roomSidebar) {
return roomSidebar.isAlert();
}
@Override
public boolean shouldShow(@NonNull List<Room> roomList) {
for (int i = 0, size = roomList.size(); i < size; i++) {
if (roomList.get(i).isAlert()) {
public boolean shouldShow(@NonNull List<RoomSidebar> roomSidebarList) {
for (int i = 0, size = roomSidebarList.size(); i < size; i++) {
if (roomSidebarList.get(i).isAlert()) {
return true;
}
}
return false;
}
......
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