Skip to content

Commit

Permalink
Update FilterService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlbo committed Feb 4, 2024
1 parent 1f42616 commit 5e46e3a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ public static List<Filter> getFilters(List<Integer> ids) {
}
}
} catch (IOException | JSONException e) {
throw new RuntimeException(e);
if (!FiltersPreferences.getAllFilterIds().isEmpty()) {
return FiltersPreferences.getAllDownloadedFilters(); // check for offline server to get local filters
} else {
throw new RuntimeException(e);
}
}
}

Expand Down

0 comments on commit 5e46e3a

Please sign in to comment.