修复android8自带背景不显示的bug

pull/457/head
gedoor 4 years ago
parent da39b57e2e
commit 00c408a3d3
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt

@ -115,7 +115,7 @@ class BgTextConfigDialog : BaseDialogFragment(), FileChooserDialog.CallBack {
headerView.iv_bg.setImageResource(R.drawable.ic_image)
headerView.iv_bg.setColorFilter(primaryTextColor)
headerView.onClick { selectImage() }
requireContext().assets.list("bg${File.separator}")?.let {
requireContext().assets.list("bg")?.let {
adapter.setItems(it.toList())
}
}

Loading…
Cancel
Save