Logging fixes and lint
This commit is contained in:
parent
6951314744
commit
367d95c825
@ -159,7 +159,7 @@ class ExtensionManager(
|
|||||||
return filterNot { extension ->
|
return filterNot { extension ->
|
||||||
extension.isBlacklisted(blacklistEnabled)
|
extension.isBlacklisted(blacklistEnabled)
|
||||||
.also {
|
.also {
|
||||||
if (it) xLogD("Removing blacklisted extension: (name: %s, pkgName: %s)!", extension.name, extension.pkgName)
|
if (it) this@ExtensionManager.xLogD("Removing blacklisted extension: (name: %s, pkgName: %s)!", extension.name, extension.pkgName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -325,7 +325,7 @@ class EHentai(
|
|||||||
url = EHentaiSearchMetadata.normalizeUrl(parentLink)
|
url = EHentaiSearchMetadata.normalizeUrl(parentLink)
|
||||||
} else break
|
} else break
|
||||||
} else {
|
} else {
|
||||||
xLogD("Parent cache hit: %s!", gid)
|
this@EHentai.xLogD("Parent cache hit: %s!", gid)
|
||||||
url = EHentaiSearchMetadata.idAndTokenToUrl(
|
url = EHentaiSearchMetadata.idAndTokenToUrl(
|
||||||
cachedParent.gId,
|
cachedParent.gId,
|
||||||
cachedParent.gToken
|
cachedParent.gToken
|
||||||
@ -613,7 +613,7 @@ class EHentai(
|
|||||||
lastUpdateCheck - datePosted!! > EHentaiUpdateWorkerConstants.GALLERY_AGE_TIME
|
lastUpdateCheck - datePosted!! > EHentaiUpdateWorkerConstants.GALLERY_AGE_TIME
|
||||||
) {
|
) {
|
||||||
aged = true
|
aged = true
|
||||||
xLogD("aged %s - too old", title)
|
this@EHentai.xLogD("aged %s - too old", title)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse ratings
|
// Parse ratings
|
||||||
@ -884,7 +884,15 @@ class EHentai(
|
|||||||
|
|
||||||
data class AdvSearchEntry(val search: Pair<String, String>, val exclude: Boolean)
|
data class AdvSearchEntry(val search: Pair<String, String>, val exclude: Boolean)
|
||||||
|
|
||||||
class AutoCompleteTags(tags: List<String>, skipAutoFillTags: List<String>, excludePrefix: String) : Filter.AutoComplete(name = "Tags", hint = "Search tags here (limit of 8)", values = tags, skipAutoFillTags = skipAutoFillTags, excludePrefix = excludePrefix, state = emptyList())
|
class AutoCompleteTags(tags: List<String>, skipAutoFillTags: List<String>, excludePrefix: String) :
|
||||||
|
Filter.AutoComplete(
|
||||||
|
name = "Tags",
|
||||||
|
hint = "Search tags here (limit of 8)",
|
||||||
|
values = tags,
|
||||||
|
skipAutoFillTags = skipAutoFillTags,
|
||||||
|
excludePrefix = excludePrefix,
|
||||||
|
state = emptyList()
|
||||||
|
)
|
||||||
|
|
||||||
class MinPagesOption : PageOption("Minimum Pages", "f_spf")
|
class MinPagesOption : PageOption("Minimum Pages", "f_spf")
|
||||||
class MaxPagesOption : PageOption("Maximum Pages", "f_spt")
|
class MaxPagesOption : PageOption("Maximum Pages", "f_spt")
|
||||||
|
@ -366,7 +366,7 @@ class WebtoonPageHolder(
|
|||||||
// SY -->
|
// SY -->
|
||||||
val imageCropBorders = if (!viewer.isContinuous) config.continuousCropBorders else config.imageCropBorders
|
val imageCropBorders = if (!viewer.isContinuous) config.continuousCropBorders else config.imageCropBorders
|
||||||
// SY <--
|
// SY <--
|
||||||
if (subsamplingImageView != null && /* SY --> */ imageCropBorders /* SY <-- */ == cropBorders) {
|
if (subsamplingImageView != null && /* SY --> */ imageCropBorders /* SY <-- */ == cropBorders) {
|
||||||
return subsamplingImageView!!
|
return subsamplingImageView!!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ class MemAutoFlushingLookupTable<T>(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e: FileNotFoundException) {
|
} catch (e: FileNotFoundException) {
|
||||||
xLogD("Lookup table not found!", e)
|
this@MemAutoFlushingLookupTable.xLogD("Lookup table not found!", e)
|
||||||
// Ignored
|
// Ignored
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user