pull/70/head
kunfei 5 years ago
parent 7b0c8d3dbd
commit 530c9b176d
  1. 1
      app/src/main/java/io/legado/app/ui/widget/BadgeView.kt

@ -77,6 +77,7 @@ class BadgeView @JvmOverloads constructor(
val typedArray = context.obtainStyledAttributes(attrs, R.styleable.BadgeView) val typedArray = context.obtainStyledAttributes(attrs, R.styleable.BadgeView)
val radios = val radios =
typedArray.getDimensionPixelOffset(R.styleable.BadgeView_bv_radius, 8) typedArray.getDimensionPixelOffset(R.styleable.BadgeView_bv_radius, 8)
typedArray.recycle()
if (layoutParams !is LayoutParams) { if (layoutParams !is LayoutParams) {
val layoutParams = LayoutParams( val layoutParams = LayoutParams(

Loading…
Cancel
Save