mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-03-19 03:43:09 +00:00
Rewriting classes in kotlin
This commit is contained in:
@@ -45,12 +45,12 @@ public class AlbumBottomSheetViewModel extends AndroidViewModel {
|
||||
}
|
||||
|
||||
public void setFavorite() {
|
||||
if (album.isFavorite()) {
|
||||
if (Boolean.TRUE.equals(album.getStarred())) {
|
||||
artistRepository.unstar(album.getId());
|
||||
album.setFavorite(false);
|
||||
album.setStarred(false);
|
||||
} else {
|
||||
artistRepository.star(album.getId());
|
||||
album.setFavorite(true);
|
||||
album.setStarred(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user