the menus text is now selectable

* fixed some formating errors at the mensa screen
This commit is contained in:
2018-11-26 12:56:06 +01:00
parent f97e8b2b14
commit 3d7f6f961a
4 changed files with 11 additions and 5 deletions

View File

@ -84,8 +84,10 @@ class MensaFragment : Fragment() {
val menuViewMenu = MenuCardView(context!!, null)
menuViewMenu.setMenuHeading(meal.heading)
for(part in meal.parts) {
for ((i, part) in meal.parts.withIndex()) {
menuViewMenu.getTxtViewMenu().append(part)
if(i < (meal.parts.size - 2))
menuViewMenu.getTxtViewMenu().append("\n")
}
cardViewMensaDay.setDayHeading(meal.day) //TODO move this out of the first for loop, performance!!