书架封面的新章节显示错误
This commit is contained in:
+2
@@ -10,6 +10,7 @@ import io.legado.app.data.entities.Book
|
||||
import io.legado.app.databinding.ItemBookshelfGridCompactBinding
|
||||
import io.legado.app.help.book.isLocal
|
||||
import io.legado.app.help.config.AppConfig
|
||||
import io.legado.app.utils.gone
|
||||
|
||||
class BooksAdapterGridCompact(context: Context, private val callBack: CallBack) :
|
||||
BaseBooksAdapter<ItemBookshelfGridCompactBinding>(context) {
|
||||
@@ -64,6 +65,7 @@ class BooksAdapterGridCompact(context: Context, private val callBack: CallBack)
|
||||
binding.newChapter.isVisible = item.lastCheckCount > 0
|
||||
} else {
|
||||
binding.cdUnread.visibility = View.GONE
|
||||
binding.newChapter.gone()
|
||||
}
|
||||
} else {
|
||||
binding.cdUnread.visibility = View.GONE
|
||||
|
||||
+1
@@ -65,6 +65,7 @@ class BooksAdapterGridCover(context: Context, private val callBack: CallBack) :
|
||||
binding.newChapter.isVisible = item.lastCheckCount > 0
|
||||
} else {
|
||||
binding.cdUnread.visibility = View.GONE
|
||||
binding.newChapter.gone()
|
||||
}
|
||||
} else {
|
||||
binding.cdUnread.visibility = View.GONE
|
||||
|
||||
+1
@@ -83,6 +83,7 @@ class BooksAdapterList(
|
||||
binding.newChapter.isVisible = item.lastCheckCount > 0
|
||||
} else {
|
||||
binding.cdUnread.gone()
|
||||
binding.newChapter.gone()
|
||||
}
|
||||
} else {
|
||||
binding.cdUnread.gone()
|
||||
|
||||
+1
@@ -87,6 +87,7 @@ class BooksAdapterListCompact(
|
||||
binding.newChapter.isVisible = item.lastCheckCount > 0
|
||||
} else {
|
||||
binding.cdUnread.gone()
|
||||
binding.newChapter.gone()
|
||||
}
|
||||
} else {
|
||||
binding.cdUnread.gone()
|
||||
|
||||
@@ -72,9 +72,10 @@
|
||||
|
||||
<com.google.android.material.circularreveal.cardview.CircularRevealCardView
|
||||
android:id="@+id/new_chapter"
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_width="6dp"
|
||||
android:layout_height="6dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginStart="6dp"
|
||||
app:strokeWidth="0dp"
|
||||
app:cardBackgroundColor="?attr/colorSecondaryContainer" />
|
||||
|
||||
|
||||
@@ -63,9 +63,10 @@
|
||||
|
||||
<com.google.android.material.circularreveal.cardview.CircularRevealCardView
|
||||
android:id="@+id/new_chapter"
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_width="6dp"
|
||||
android:layout_height="6dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginStart="6dp"
|
||||
app:strokeWidth="0dp"
|
||||
app:cardBackgroundColor="?attr/colorSecondaryContainer" />
|
||||
|
||||
|
||||
@@ -75,9 +75,10 @@
|
||||
|
||||
<com.google.android.material.circularreveal.cardview.CircularRevealCardView
|
||||
android:id="@+id/new_chapter"
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_width="6dp"
|
||||
android:layout_height="6dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginStart="6dp"
|
||||
app:strokeWidth="0dp"
|
||||
app:cardBackgroundColor="?attr/colorSecondaryContainer" />
|
||||
|
||||
|
||||
@@ -75,9 +75,10 @@
|
||||
|
||||
<com.google.android.material.circularreveal.cardview.CircularRevealCardView
|
||||
android:id="@+id/new_chapter"
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_width="6dp"
|
||||
android:layout_height="6dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginStart="6dp"
|
||||
app:strokeWidth="0dp"
|
||||
app:cardBackgroundColor="?attr/colorSecondaryContainer" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user