pull/32/head
kunfei 5 years ago
parent b8775cbe29
commit e107d47385
  1. 3
      app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt

@ -20,7 +20,7 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) {
@SuppressLint("ConstantLocale")
private val DEBUG_TIME_FORMAT = SimpleDateFormat("[mm:ss.SSS]", Locale.getDefault())
private val startTime: Long = System.currentTimeMillis()
private var startTime: Long = System.currentTimeMillis()
@Synchronized
fun printLog(
@ -60,6 +60,7 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) {
fun startDebug(key: String) {
cancelDebug()
startTime = System.currentTimeMillis()
with(webBook) {
if (key.isAbsUrl()) {
val book = Book()

Loading…
Cancel
Save