feat: 优化代码

pull/103/head
kunfei 5 years ago
parent b808e24e5a
commit 9294a1d5a7
  1. 1
      app/src/main/java/io/legado/app/ui/widget/LabelsBar.kt

@ -42,6 +42,7 @@ class LabelsBar(context: Context, attrs: AttributeSet?) : LinearLayout(context,
lp.setMargins(0, 0, 2.dp, 0) lp.setMargins(0, 0, 2.dp, 0)
layoutParams = lp layoutParams = lp
text = label text = label
maxLines = 1
usedViews.add(this) usedViews.add(this)
} }
} else { } else {

Loading…
Cancel
Save