Esempio n. 1
0
  /**
   * 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;
  }
Esempio n. 2
0
 public static ArrayList<Themes> getAllThemes() {
   ArrayList<Themes> themes = new ArrayList<Themes>();
   themes.addAll(Arrays.asList(Themes.values()));
   return themes;
 }