This commit is contained in:
Horis
2023-03-26 14:53:26 +08:00
parent c568c86eb8
commit 64a47115a4
3 changed files with 331 additions and 330 deletions
@@ -85,10 +85,9 @@ class ImportBookActivity : BaseImportBookActivity<ImportBookViewModel>(),
override fun onMenuItemClick(item: MenuItem?): Boolean {
when (item?.itemId) {
R.id.menu_del_selection ->
viewModel.deleteDoc(adapter.selectedUris) {
adapter.removeSelection()
}
R.id.menu_del_selection -> viewModel.deleteDoc(adapter.selectedUris) {
adapter.removeSelection()
}
}
return false
}
@@ -115,7 +115,6 @@ class BookInfoActivity :
binding.refreshLayout?.setColorSchemeColors(accentColor)
binding.arcView.setBgColor(backgroundColor)
binding.llInfo.setBackgroundColor(backgroundColor)
binding.scrollView.setBackgroundColor(backgroundColor)
binding.flAction.setBackgroundColor(bottomBackground)
binding.tvShelf.setTextColor(getPrimaryTextColor(ColorUtils.isColorLight(bottomBackground)))
binding.tvToc.text = getString(R.string.toc_s, getString(R.string.loading))
@@ -423,9 +422,6 @@ class BookInfoActivity :
}
}
}
scrollView.setOnScrollChangeListener { _, _, scrollY, _, _ ->
refreshLayout?.isEnabled = (scrollY <= 0)
}
refreshLayout?.setOnRefreshListener {
refreshLayout.isRefreshing = false
refreshBook()