pull/441/head
gedoor 4 years ago
parent ee33659c92
commit 03675580b6
  1. 2
      app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt
  2. 2
      app/src/main/res/layout/activity_source_debug.xml

@ -2,7 +2,6 @@ package io.legado.app.ui.about
import android.content.Context
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import io.legado.app.App
import io.legado.app.R
import io.legado.app.base.BaseActivity
@ -33,7 +32,6 @@ class ReadRecordActivity : BaseActivity(R.layout.activity_read_record) {
private fun initView() {
tv_book_name.setText(R.string.all_read_time)
recycler_view.layoutManager = LinearLayoutManager(this)
adapter = RecordAdapter(this)
recycler_view.adapter = adapter
iv_remove.onClick {

@ -10,6 +10,7 @@
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentInsetStartWithNavigation="0dp"
app:contentLayout="@layout/view_search"
app:layout_constraintTop_toTopOf="parent"
app:title="@string/debug_source" />
@ -18,6 +19,7 @@
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintTop_toBottomOf="@+id/title_bar"
app:layout_constraintBottom_toBottomOf="parent" />

Loading…
Cancel
Save