Skip to content

Commit

Permalink
Fix crash on older devices
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Jan 28, 2024
1 parent 7a44aa9 commit 1fb06ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/be/ugent/zeus/hydra/resto/RestoMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/**
* Represents a menu for a single day.
Expand Down Expand Up @@ -117,7 +118,7 @@ private List<RestoMeal> fixSoups(List<RestoMeal> soups) {
}
final String suffix = priceBig;

return finalSoups.stream().map(s -> s.withPrice(s.price() + " / " + suffix)).toList();
return finalSoups.stream().map(s -> s.withPrice(s.price() + " / " + suffix)).collect(Collectors.toList());
}

/**
Expand Down

0 comments on commit 1fb06ff

Please sign in to comment.