Set episodes title length to max 3 lines, ellipsize at end
This commit is contained in:
parent
1af82f8370
commit
eaf1cf78e9
|
@ -73,13 +73,6 @@ class EpisodeItemAdapter(
|
||||||
return episodes.size
|
return episodes.size
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateWatchedState(watched: Boolean, position: Int) {
|
|
||||||
// use getOrNull as there could be a index out of bound when running this in onResume()
|
|
||||||
|
|
||||||
// TODO
|
|
||||||
//episodes.getOrNull(position)?.watched = watched
|
|
||||||
}
|
|
||||||
|
|
||||||
inner class EpisodeViewHolder(val binding: ItemEpisodeBinding) :
|
inner class EpisodeViewHolder(val binding: ItemEpisodeBinding) :
|
||||||
RecyclerView.ViewHolder(binding.root) {
|
RecyclerView.ViewHolder(binding.root) {
|
||||||
init {
|
init {
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginStart="7dp"
|
android:layout_marginStart="7dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxLines="3"
|
||||||
android:text="@string/component_episode_title"
|
android:text="@string/component_episode_title"
|
||||||
android:textColor="?textPrimary"
|
android:textColor="?textPrimary"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
Loading…
Reference in New Issue