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() initData()
} }
private fun initView() { private fun initView() = with(binding) {
binding.readRecord.tvBookName.setText(R.string.all_read_time) readRecord.tvBookName.setText(R.string.all_read_time)
adapter = RecordAdapter(this) adapter = RecordAdapter(this@ReadRecordActivity)
binding.recyclerView.adapter = adapter recyclerView.adapter = adapter
binding.readRecord.ivRemove.onClick { readRecord.ivRemove.onClick {
alert(R.string.delete, R.string.sure_del) { alert(R.string.delete, R.string.sure_del) {
okButton { okButton {
App.db.readRecordDao().clear() App.db.readRecordDao().clear()

Loading…
Cancel
Save