/** * Finds all the themes available and returns them. * * @return all the themes available to the user, in an arraylist */ public static ArrayList<Themes> getAvailableThemes() { ArrayList<Themes> themes = new ArrayList<Themes>(); for (Themes theme : Themes.values()) { if (theme.isUnlocked()) themes.add(theme); } return themes; }
public static ArrayList<Themes> getAllThemes() { ArrayList<Themes> themes = new ArrayList<Themes>(); themes.addAll(Arrays.asList(Themes.values())); return themes; }