优化
This commit is contained in:
@@ -6,7 +6,6 @@ import androidx.room.Entity
|
||||
import androidx.room.ForeignKey
|
||||
import androidx.room.Ignore
|
||||
import androidx.room.Index
|
||||
import io.legado.app.R
|
||||
import io.legado.app.constant.AppLog
|
||||
import io.legado.app.constant.AppPattern
|
||||
import io.legado.app.data.appDb
|
||||
@@ -138,11 +137,7 @@ data class BookChapter(
|
||||
}
|
||||
}
|
||||
}
|
||||
return when {
|
||||
!isVip -> displayTitle
|
||||
isPay -> appCtx.getString(R.string.payed_title, displayTitle)
|
||||
else -> appCtx.getString(R.string.vip_title, displayTitle)
|
||||
}
|
||||
return displayTitle
|
||||
}
|
||||
|
||||
fun getAbsoluteURL(): String {
|
||||
|
||||
@@ -195,6 +195,8 @@ class BookSourceDebugActivity : VMBaseActivity<ActivitySourceDebugBinding, BookS
|
||||
R.id.menu_content_src -> showDialogFragment(TextDialog("html", viewModel.contentSrc))
|
||||
R.id.menu_refresh_explore -> lifecycleScope.launch {
|
||||
viewModel.bookSource?.clearExploreKindsCache()
|
||||
adapter.clearItems()
|
||||
openOrCloseHelp(true)
|
||||
initExploreKinds()
|
||||
}
|
||||
R.id.menu_help -> showHelp("debugHelp")
|
||||
|
||||
@@ -159,6 +159,12 @@ class ChapterListAdapter(context: Context, val callback: Callback) :
|
||||
tvWordCount.gone()
|
||||
}
|
||||
|
||||
if (item.isVip && !item.isPay) {
|
||||
ivLocked.visible()
|
||||
} else {
|
||||
ivLocked.gone()
|
||||
}
|
||||
|
||||
upHasCache(binding, isDur, cached)
|
||||
} else {
|
||||
tvChapterName.text = getDisplayTitle(item)
|
||||
|
||||
Reference in New Issue
Block a user