@ -656,11 +656,10 @@ interface JsExtensions : JsEncodeUtils {
* 输出调试日志
*/
fun log(msg: Any?): Any? {
val msg1 = "书源调试输出:${msg}"
getSource()?.let {
Debug.log(it.getKey(), msg1)
} ?: Debug.log(msg1)
AppLog.putDebug(msg1)
Debug.log(it.getKey(), msg.toString())
} ?: Debug.log(msg.toString())
AppLog.putDebug("书源调试输出:$msg")
return msg
}
@ -162,7 +162,7 @@ object BookHelp {
} catch (e: Exception) {
e.printStackTrace()
AppLog.put("图片 $src 下载错误", e)
AppLog.put("图片 $src 下载错误\n${e.localizedMessage}", e)
} finally {
downloadImages.remove(src)
@ -119,7 +119,9 @@ class ChapterListAdapter(context: Context, val callback: Callback) :
) {
binding.run {
val isDur = callback.durChapterIndex() == item.index
val cached = callback.isLocalBook || cacheFileNames.contains(item.getFileName())
val cached = callback.isLocalBook
|| item.isVolume
|| cacheFileNames.contains(item.getFileName())
if (payloads.isEmpty()) {
if (isDur) {
tvChapterName.setTextColor(context.accentColor)