Twelve: Allow changing max lines in HorizontalListItem
diff --git a/app/src/main/java/org/lineageos/twelve/ui/views/HorizontalListItem.kt b/app/src/main/java/org/lineageos/twelve/ui/views/HorizontalListItem.kt
index 0762dc4..63eff2c 100644
--- a/app/src/main/java/org/lineageos/twelve/ui/views/HorizontalListItem.kt
+++ b/app/src/main/java/org/lineageos/twelve/ui/views/HorizontalListItem.kt
@@ -42,12 +42,24 @@
headlineTextView.setTextAndUpdateVisibility(value)
}
+ var headlineMaxLines: Int
+ get() = headlineTextView.maxLines
+ set(value) {
+ headlineTextView.maxLines = value
+ }
+
var supportingText: CharSequence?
get() = supportingTextView.text
set(value) {
supportingTextView.setTextAndUpdateVisibility(value)
}
+ var supportingMaxLines: Int
+ get() = supportingTextView.maxLines
+ set(value) {
+ supportingTextView.maxLines = value
+ }
+
init {
inflate(context, R.layout.horizontal_list_item, this)
}