pull/32/head
kunfei 5 years ago
parent c858324d45
commit ef915e327d
  1. 2
      app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt

@ -46,7 +46,7 @@ class FontSelectDialog(context: Context) : FontAdapter.CallBack {
recycler_view.layoutManager = LinearLayoutManager(context)
recycler_view.adapter = adapter
val files = getFontFiles()
if (files == null) {
if (files.isNullOrEmpty()) {
tv_no_data.visible()
} else {
tv_no_data.invisible()

Loading…
Cancel
Save