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

@ -21,14 +21,14 @@ data class Book(
var tocUrl: String = "", // 目录页Url (toc=table of Contents)
var origin: String = BookType.local, // 书源URL(默认BookType.local)
var originName: String = "", //书源名称 or 本地书籍文件名
var name: String = "", // 书籍名称(书源获取)
var author: String = "", // 作者名称(书源获取)
override var kind: String? = null, // 分类信息(书源获取)
var name: String = "", // 书籍名称(书源获取)
var author: String = "", // 作者名称(书源获取)
override var kind: String? = null, // 分类信息(书源获取)
var customTag: String? = null, // 分类信息(用户修改)
var coverUrl: String? = null, // 封面Url(书源获取)
var customCoverUrl: String? = null, // 封面Url(用户修改)
var intro: String? = null, // 简介内容(书源获取)
var customIntro: String? = null, // 简介内容(用户修改)
var intro: String? = null, // 简介内容(书源获取)
var customIntro: String? = null, // 简介内容(用户修改)
var charset: String? = null, // 自定义字符集名称(仅适用于本地书籍)
var type: Int = 0, // @BookType
var group: Int = 0, // 自定义分组索引号

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

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