Skip to content

Commit

Permalink
Fix getAllChannelsIndex always returning -1
Browse files Browse the repository at this point in the history
(cherry picked from commit a086a2d)
  • Loading branch information
nielsvanvelzen committed Apr 18, 2024
1 parent 3709bf5 commit 41df9a5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public static void forceReload() {
public static boolean shouldForceReload() { return forceReload; }

public static int getAllChannelsIndex(String id) {
if (allChannels == null) return -1;
for (int i = 0; i < allChannels.size(); i++) {
if (allChannels.get(i).getId().equals(id)) return i;
}
Expand Down

0 comments on commit 41df9a5

Please sign in to comment.