pull/1123/head^2 3.21.071723
gedoor 4 years ago
parent a793177a93
commit f6392d8d30
  1. 4
      app/src/main/java/io/legado/app/ui/main/explore/ExploreAdapter.kt

@ -93,12 +93,16 @@ class ExploreAdapter(context: Context, private val scope: CoroutineScope, val ca
lp.flexBasisPercent = style.layout_flexBasisPercent lp.flexBasisPercent = style.layout_flexBasisPercent
lp.isWrapBefore = style.layout_wrapBefore lp.isWrapBefore = style.layout_wrapBefore
} }
if (kind.url.isNullOrBlank()) {
tv.setOnClickListener(null)
} else {
tv.setOnClickListener { tv.setOnClickListener {
callBack.openExplore(sourceUrl, kind.title, kind.url) callBack.openExplore(sourceUrl, kind.title, kind.url)
} }
} }
} }
} }
}
@Synchronized @Synchronized
private fun getFlexboxChild(flexbox: FlexboxLayout): TextView { private fun getFlexboxChild(flexbox: FlexboxLayout): TextView {

Loading…
Cancel
Save