feat: 优化代码

pull/133/head
kunfei 5 years ago
parent 3fb4738008
commit c0b4b44f6c
  1. 2
      app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt

@ -284,7 +284,7 @@ class SearchActivity : VMBaseActivity<SearchViewModel>(R.layout.activity_book_se
return return
} }
refreshTime = System.currentTimeMillis() refreshTime = System.currentTimeMillis()
val diffResult = DiffUtil.calculateDiff(DiffCallBack(ArrayList(adapter.getItems()), items)) val diffResult = DiffUtil.calculateDiff(DiffCallBack(adapter.getItems(), items))
adapter.setItems(items, diffResult) adapter.setItems(items, diffResult)
} }

Loading…
Cancel
Save