mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 14:00:17 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8119530bef | ||
|
|
09d20efba6 | ||
|
|
bcd03fc7ce | ||
|
|
d70fae0719 | ||
|
|
dccbfcf546 |
@@ -98,9 +98,14 @@ public class Album {
|
||||
}
|
||||
|
||||
public void removeGenre(Genre genre) {
|
||||
ag.getGenre() != null &&
|
||||
ag.getGenre().getId() != null &&
|
||||
ag.getGenre().getId().equals(genre.getId())
|
||||
if (genre == null) {
|
||||
return;
|
||||
}
|
||||
albumGenres.removeIf(ag ->
|
||||
ag.getGenre() != null &&
|
||||
ag.getGenre().getId() != null &&
|
||||
ag.getGenre().getId().equals(genre.getId())
|
||||
);
|
||||
}
|
||||
|
||||
// Método conveniente para pegar só os gêneros
|
||||
|
||||
Reference in New Issue
Block a user