pull/517/head
gedoor 4 years ago
parent 235558ea4e
commit c58f962805
  1. 10
      app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt

@ -31,11 +31,11 @@ class ReadRecordActivity : BaseActivity<ActivityReadRecordBinding>() {
initData()
}
private fun initView() {
binding.readRecord.tvBookName.setText(R.string.all_read_time)
adapter = RecordAdapter(this)
binding.recyclerView.adapter = adapter
binding.readRecord.ivRemove.onClick {
private fun initView() = with(binding) {
readRecord.tvBookName.setText(R.string.all_read_time)
adapter = RecordAdapter(this@ReadRecordActivity)
recyclerView.adapter = adapter
readRecord.ivRemove.onClick {
alert(R.string.delete, R.string.sure_del) {
okButton {
App.db.readRecordDao().clear()

Loading…
Cancel
Save