From b5fb0997c4754e2a7ff0c2eb4f2df0b5a8af7d7e Mon Sep 17 00:00:00 2001 From: KingLucius Date: Mon, 19 Feb 2024 17:44:50 +0200 Subject: [PATCH] [TV] Limit Homepage Header Description to 3 lines & 6 Tags (#938) --- .../cloudstream3/ui/home/HomeParentItemAdapterPreview.kt | 2 +- app/src/main/res/layout/fragment_home_head_tv.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeParentItemAdapterPreview.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeParentItemAdapterPreview.kt index b7f601ff..0e397f81 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeParentItemAdapterPreview.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeParentItemAdapterPreview.kt @@ -317,7 +317,7 @@ class HomeParentItemAdapterPreview( homePreviewText.text = item.name populateChips( homePreviewTags, - item.tags ?: emptyList(), + item.tags?.take(6) ?: emptyList(), R.style.ChipFilledSemiTransparent ) diff --git a/app/src/main/res/layout/fragment_home_head_tv.xml b/app/src/main/res/layout/fragment_home_head_tv.xml index 6db7536f..ccc3a8e1 100644 --- a/app/src/main/res/layout/fragment_home_head_tv.xml +++ b/app/src/main/res/layout/fragment_home_head_tv.xml @@ -137,7 +137,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="end" - android:maxLines="5" + android:maxLines="3" android:paddingBottom="5dp" android:textSize="15sp" tools:text="very nice tv series" />