diff --git a/app/src/main/java/io/legado/app/ui/book/search/SearchViewModel.kt b/app/src/main/java/io/legado/app/ui/book/search/SearchViewModel.kt index 448f6d0db..b02414b29 100644 --- a/app/src/main/java/io/legado/app/ui/book/search/SearchViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/search/SearchViewModel.kt @@ -20,7 +20,6 @@ class SearchViewModel(application: Application) : BaseViewModel(application) { private var task: Coroutine<*>? = null var callBack: CallBack? = null var searchKey: String = "" - var startTime: Long = 0 var searchPage = 1 var isLoading = false private var searchBooks = arrayListOf() @@ -38,7 +37,6 @@ class SearchViewModel(application: Application) : BaseViewModel(application) { searchKey = key searchBooks.clear() } - startTime = System.currentTimeMillis() callBack?.startSearch() task = execute { val searchGroup = context.getPrefString("searchGroup") ?: ""