[Iken] Add lock prefix only if not accessible (#10796)

* Add lock prefix only if not accessible

* Update baseVersionCode

* Update preference text to match function

---------

Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com>
This commit is contained in:
lord-ne 2025-10-03 16:25:41 -04:00 committed by Draff
parent 23e386a7e5
commit 562983bca3
Signed by: Draff
GPG Key ID: E8A89F3211677653
3 changed files with 3 additions and 3 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 10
baseVersionCode = 11

View File

@ -107,7 +107,7 @@ class Chapter(
fun isLocked() = (isLocked == true) || (isTimeLocked == true)
fun toSChapter(mangaSlug: String?) = SChapter.create().apply {
val prefix = if (isLocked()) "🔒 " else ""
val prefix = if (!isAccessible()) "🔒 " else ""
val seriesSlug = mangaSlug ?: mangaPost.slug
url = "/series/$seriesSlug/$slug#$id"
name = "${prefix}Chapter $number"

View File

@ -171,7 +171,7 @@ abstract class Iken(
override fun setupPreferenceScreen(screen: PreferenceScreen) {
SwitchPreferenceCompat(screen.context).apply {
key = showLockedChapterPrefKey
title = "Show locked chapters"
title = "Show inaccessible chapters"
setDefaultValue(false)
}.also(screen::addPreference)
}