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
This commit is contained in:
Jay 2020-05-09 12:52:51 -04:00
parent c2f7c25d70
commit e20ea71403
2 changed files with 6 additions and 6 deletions

View file

@ -21,7 +21,7 @@ class RecentMangaHolder(
) : BaseChapterHolder(view, adapter) { ) : BaseChapterHolder(view, adapter) {
init { init {
cover_thumbnail?.setOnClickListener { adapter.delegate.onCoverClick(adapterPosition) } card_layout?.setOnClickListener { adapter.delegate.onCoverClick(adapterPosition) }
} }
fun bind(recentsType: Int) { fun bind(recentsType: Int) {

View file

@ -11,8 +11,8 @@
android:id="@+id/right_view" android:id="@+id/right_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:visibility="gone"
android:background="@color/material_green_800" android:background="@color/material_green_800"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -22,10 +22,10 @@
android:id="@+id/read" android:id="@+id/read"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:tint="@color/md_white_1000"
android:layout_gravity="end|center" android:layout_gravity="end|center"
android:layout_marginEnd="21dp" android:layout_marginEnd="21dp"
android:src="@drawable/ic_eye_24dp" /> android:src="@drawable/ic_eye_24dp"
android:tint="@color/md_white_1000" />
</FrameLayout> </FrameLayout>
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
@ -59,13 +59,13 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:foreground="?android:attr/selectableItemBackground"
android:background="?android:attr/colorBackground" android:background="?android:attr/colorBackground"
android:maxHeight="60dp" android:maxHeight="60dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:background="?android:attr/colorBackground"
tools:ignore="ContentDescription" tools:ignore="ContentDescription"
tools:src="@mipmap/ic_launcher" /> tools:src="@mipmap/ic_launcher" />
@ -120,8 +120,8 @@
android:layout_marginEnd="6dp" android:layout_marginEnd="6dp"
android:layout_marginBottom="14dp" android:layout_marginBottom="14dp"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="2"
android:lineSpacingExtra="2dp" android:lineSpacingExtra="2dp"
android:maxLines="2"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" android:textSize="14sp"
app:layout_constrainedWidth="true" app:layout_constrainedWidth="true"