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