Only hide start readin if badge is set to off

No longer hiding if unread badge is off
This commit is contained in:
Jays2Kings 2021-04-05 22:27:32 -04:00
parent 4ece78fc20
commit f724f66e66

View File

@ -1,6 +1,7 @@
package eu.kanade.tachiyomi.ui.library package eu.kanade.tachiyomi.ui.library
import android.view.View import android.view.View
import androidx.core.view.isVisible
import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.source.LocalSource import eu.kanade.tachiyomi.source.LocalSource
import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder
@ -44,9 +45,8 @@ abstract class LibraryHolder(
} }
fun setReadingButton(item: LibraryItem) { fun setReadingButton(item: LibraryItem) {
itemView.findViewById<View>(R.id.play_layout)?.visibility = if (item.manga.unread > 0 && item.unreadType > 0 && !item.hideReadingButton) { itemView.findViewById<View>(R.id.play_layout)?.isVisible =
View.VISIBLE item.manga.unread > 0 && !item.hideReadingButton
} else View.GONE
} }
/** /**