Commit 6ae9c638 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update FavoriteRoomListHeader.java

parent 175292f2
......@@ -25,8 +25,8 @@ public class FavoriteRoomListHeader implements RoomListHeader {
@Override
public boolean shouldShow(@NonNull List<RoomSidebar> roomSidebarList) {
for (int i = 0, size = roomSidebarList.size(); i < size; i++) {
if (roomSidebarList.get(i).isFavorite()) {
for (RoomSidebar roomSidebar: roomSidebarList) {
if (roomSidebar.isFavorite()) {
return true;
}
}
......
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