From f724f66e66ff36cd8b97c791ef2a31ed43db99fd Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Mon, 5 Apr 2021 22:27:32 -0400 Subject: [PATCH] Only hide start readin if badge is set to off No longer hiding if unread badge is off --- .../java/eu/kanade/tachiyomi/ui/library/LibraryHolder.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryHolder.kt index da2112508d..8edfdba647 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryHolder.kt @@ -1,6 +1,7 @@ package eu.kanade.tachiyomi.ui.library import android.view.View +import androidx.core.view.isVisible import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.source.LocalSource import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder @@ -44,9 +45,8 @@ abstract class LibraryHolder( } fun setReadingButton(item: LibraryItem) { - itemView.findViewById(R.id.play_layout)?.visibility = if (item.manga.unread > 0 && item.unreadType > 0 && !item.hideReadingButton) { - View.VISIBLE - } else View.GONE + itemView.findViewById(R.id.play_layout)?.isVisible = + item.manga.unread > 0 && !item.hideReadingButton } /**