Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Commit

Permalink
* removing empty genres etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamSahdeep committed Feb 16, 2019
1 parent 57dd77c commit a13c9f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 28 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ before_script:
- chmod +x gradlew
before_install:
- yes | sdkmanager "platforms;android-28"
after_success:
- ./upload-apk.sh
script:
- ./gradlew build --stacktrace
8 changes: 6 additions & 2 deletions app/src/main/java/com/sahdeepsingh/Bop/SongData/Data.java
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,12 @@ public ArrayList<String> getGenres() {

ArrayList<String> genres = new ArrayList<String>();

for (String genre : genreIdToGenreNameMap.values())
genres.add(genre);
for (Song song : songs) {
String genre = song.getGenre();

if ((genre != null) && (!genres.contains(genre)))
genres.add(genre);
}

Collections.sort(genres);

Expand Down
Binary file added buildApk/app-debug.apk
Binary file not shown.
24 changes: 0 additions & 24 deletions upload-apk.sh

This file was deleted.

0 comments on commit a13c9f7

Please sign in to comment.