mirror of
https://github.com/ev-map/EVMap.git
synced 2026-06-12 00:08:34 -04:00
correct display of opening hours description if there are no opening hours
This commit is contained in:
@@ -79,8 +79,11 @@ fun buildDetails(
|
|||||||
if (loc.openinghours != null && !loc.openinghours.isEmpty) DetailsAdapter.Detail(
|
if (loc.openinghours != null && !loc.openinghours.isEmpty) DetailsAdapter.Detail(
|
||||||
R.drawable.ic_hours,
|
R.drawable.ic_hours,
|
||||||
R.string.hours,
|
R.string.hours,
|
||||||
loc.openinghours.getStatusText(ctx),
|
if (loc.openinghours.days != null)
|
||||||
loc.openinghours.description,
|
loc.openinghours.getStatusText(ctx)
|
||||||
|
else
|
||||||
|
loc.openinghours.description ?: "",
|
||||||
|
if (loc.openinghours.days != null) loc.openinghours.description else null,
|
||||||
hoursDays = loc.openinghours.days
|
hoursDays = loc.openinghours.days
|
||||||
) else null,
|
) else null,
|
||||||
if (loc.cost != null) DetailsAdapter.Detail(
|
if (loc.cost != null) DetailsAdapter.Detail(
|
||||||
|
|||||||
Reference in New Issue
Block a user