pull/51/head
kunfei 5 years ago
parent 6e9a68f83a
commit 32223620fc
  1. 6
      app/src/main/java/io/legado/app/ui/widget/BadgeView.kt
  2. 2
      app/src/main/res/layout/item_bookshelf_grid.xml

@ -43,10 +43,10 @@ class BadgeView @JvmOverloads constructor(
return null
}
val text = text.toString()
try {
return Integer.parseInt(text)
return try {
Integer.parseInt(text)
} catch (e: NumberFormatException) {
return null
null
}
}

@ -12,7 +12,7 @@
<io.legado.app.ui.widget.image.CoverImageView
android:id="@+id/iv_cover"
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_height="100dp"
android:contentDescription="@string/img_cover"
android:scaleType="centerCrop"
android:src="@drawable/image_cover_default"

Loading…
Cancel
Save