From 03675580b6dd67113c144947b6f11f4e0d18bd32 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 14 Oct 2020 22:00:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt | 2 -- app/src/main/res/layout/activity_source_debug.xml | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt b/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt index f171433e4..e8e83ebf9 100644 --- a/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt +++ b/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt @@ -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 { diff --git a/app/src/main/res/layout/activity_source_debug.xml b/app/src/main/res/layout/activity_source_debug.xml index 1b79a6058..94620a861 100644 --- a/app/src/main/res/layout/activity_source_debug.xml +++ b/app/src/main/res/layout/activity_source_debug.xml @@ -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" />