pull/90/head^2
kunfei 5 years ago
parent 541c2cecf5
commit 9c7e5d9a27
  1. 6
      app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt
  2. 4
      app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookAdapter.kt

@ -71,7 +71,7 @@ class ArrangeBookActivity : VMBaseActivity<ArrangeBookViewModel>(R.layout.activi
toast(R.string.non_select) toast(R.string.non_select)
return@onClick return@onClick
} }
selectGroup()
} }
} }
@ -91,6 +91,10 @@ class ArrangeBookActivity : VMBaseActivity<ArrangeBookViewModel>(R.layout.activi
}) })
} }
override fun selectGroup() {
}
override fun upSelectCount() { override fun upSelectCount() {
cb_selected_all.isChecked = adapter.isSelectAll() cb_selected_all.isChecked = adapter.isSelectAll()
//重置全选的文字 //重置全选的文字

@ -63,6 +63,9 @@ class ArrangeBookAdapter(context: Context, val callBack: CallBack) :
tv_delete.onClick { tv_delete.onClick {
callBack.deleteBook(item.bookUrl) callBack.deleteBook(item.bookUrl)
} }
tv_group.onClick {
callBack.selectGroup()
}
} }
} }
@ -79,5 +82,6 @@ class ArrangeBookAdapter(context: Context, val callBack: CallBack) :
val groupList: List<BookGroup> val groupList: List<BookGroup>
fun upSelectCount() fun upSelectCount()
fun deleteBook(bookUrl: String) fun deleteBook(bookUrl: String)
fun selectGroup()
} }
} }
Loading…
Cancel
Save