Fix displaying long author name
This commit is contained in:
@@ -443,7 +443,7 @@ class DetailsActivity :
|
||||
loadCover(manga)
|
||||
textViewTitle.text = manga.title
|
||||
textViewSubtitle.textAndVisible = manga.altTitle
|
||||
infoLayout.chipAuthor.textAndVisible = manga.author
|
||||
infoLayout.chipAuthor.textAndVisible = manga.author?.ellipsize(AUTHOR_LABEL_LIMIT)
|
||||
if (manga.hasRating) {
|
||||
ratingBar.rating = manga.rating * ratingBar.numStars
|
||||
ratingBar.isVisible = true
|
||||
@@ -668,6 +668,7 @@ class DetailsActivity :
|
||||
companion object {
|
||||
|
||||
private const val FAV_LABEL_LIMIT = 10
|
||||
private const val AUTHOR_LABEL_LIMIT = 16
|
||||
|
||||
fun newIntent(context: Context, manga: Manga): Intent {
|
||||
return Intent(context, DetailsActivity::class.java)
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
android:visibility="gone"
|
||||
app:chipIcon="@drawable/ic_user"
|
||||
app:ensureMinTouchTargetSize="false"
|
||||
tools:text="Source"
|
||||
tools:text="Author"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.google.android.material.chip.Chip
|
||||
|
||||
Reference in New Issue
Block a user