优化
This commit is contained in:
@@ -4,7 +4,7 @@ package io.legado.app.data.entities.rule
|
|||||||
* 发现分类
|
* 发现分类
|
||||||
*/
|
*/
|
||||||
data class ExploreKind(
|
data class ExploreKind(
|
||||||
val title: String,
|
val title: String = "",
|
||||||
val url: String? = null,
|
val url: String? = null,
|
||||||
val style: Style? = null
|
val style: Style? = null
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -128,7 +128,8 @@ class BookSourceDebugActivity : VMBaseActivity<ActivitySourceDebugBinding, BookS
|
|||||||
return@launch
|
return@launch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exploreKinds?.map { it.title }?.let { exploreKindTitles ->
|
@Suppress("USELESS_ELVIS")
|
||||||
|
exploreKinds?.map { it.title ?: "" }?.let { exploreKindTitles ->
|
||||||
binding.textFx.onLongClick {
|
binding.textFx.onLongClick {
|
||||||
selector("选择发现", exploreKindTitles) { _, index ->
|
selector("选择发现", exploreKindTitles) { _, index ->
|
||||||
val explore = exploreKinds[index]
|
val explore = exploreKinds[index]
|
||||||
|
|||||||
Reference in New Issue
Block a user