This commit is contained in:
Horis
2025-04-21 15:37:18 +08:00
parent 62c7ed80af
commit b3fa99c453
5 changed files with 25 additions and 8 deletions
@@ -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)