Commit 5c15ba6c authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update UnreadRoomListHeader.java

parent 6ae9c638
......@@ -25,12 +25,12 @@ public class UnreadRoomListHeader implements RoomListHeader {
@Override
public boolean shouldShow(@NonNull List<RoomSidebar> roomSidebarList) {
for (int i = 0, size = roomSidebarList.size(); i < size; i++) {
if (roomSidebarList.get(i).isAlert()) {
for (RoomSidebar roomSidebar: roomSidebarList) {
if (roomSidebar.isAlert()) {
return true;
}
}
return false;
return false;
}
@Override
......
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