Set episodes title length to max 3 lines, ellipsize at end
This commit is contained in:
		| @ -73,13 +73,6 @@ class EpisodeItemAdapter( | ||||
|         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) : | ||||
|         RecyclerView.ViewHolder(binding.root) { | ||||
|         init { | ||||
|  | ||||
| @ -43,6 +43,8 @@ | ||||
|             android:layout_height="match_parent" | ||||
|             android:layout_marginStart="7dp" | ||||
|             android:layout_weight="1" | ||||
|             android:ellipsize="end" | ||||
|             android:maxLines="3" | ||||
|             android:text="@string/component_episode_title" | ||||
|             android:textColor="?textPrimary" | ||||
|             android:textSize="16sp" /> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user