From e20ea71403a4cd2a7de72dff85bb138d1e30b2f6 Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 9 May 2020 12:52:51 -0400 Subject: [PATCH] fixed not being able to go the manga details on recents if there wasn't a cover also covers now have a ripple effect on click --- .../kanade/tachiyomi/ui/recents/RecentMangaHolder.kt | 2 +- app/src/main/res/layout/recent_manga_item.xml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaHolder.kt index 354fc86834..0c0caddf2f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaHolder.kt @@ -21,7 +21,7 @@ class RecentMangaHolder( ) : BaseChapterHolder(view, adapter) { init { - cover_thumbnail?.setOnClickListener { adapter.delegate.onCoverClick(adapterPosition) } + card_layout?.setOnClickListener { adapter.delegate.onCoverClick(adapterPosition) } } fun bind(recentsType: Int) { diff --git a/app/src/main/res/layout/recent_manga_item.xml b/app/src/main/res/layout/recent_manga_item.xml index 725dc38056..dedfbffc86 100644 --- a/app/src/main/res/layout/recent_manga_item.xml +++ b/app/src/main/res/layout/recent_manga_item.xml @@ -11,8 +11,8 @@ android:id="@+id/right_view" android:layout_width="match_parent" android:layout_height="match_parent" - android:visibility="gone" android:background="@color/material_green_800" + android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -22,10 +22,10 @@ android:id="@+id/read" android:layout_width="24dp" android:layout_height="24dp" - android:tint="@color/md_white_1000" android:layout_gravity="end|center" android:layout_marginEnd="21dp" - android:src="@drawable/ic_eye_24dp" /> + android:src="@drawable/ic_eye_24dp" + android:tint="@color/md_white_1000" /> @@ -120,8 +120,8 @@ android:layout_marginEnd="6dp" android:layout_marginBottom="14dp" android:ellipsize="end" - android:maxLines="2" android:lineSpacingExtra="2dp" + android:maxLines="2" android:textColor="?android:attr/textColorSecondary" android:textSize="14sp" app:layout_constrainedWidth="true"