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 return null
} }
val text = text.toString() val text = text.toString()
try { return try {
return Integer.parseInt(text) Integer.parseInt(text)
} catch (e: NumberFormatException) { } catch (e: NumberFormatException) {
return null null
} }
} }

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

Loading…
Cancel
Save