From fc281aa65c79efffac71a41ae329264455d5b8d0 Mon Sep 17 00:00:00 2001 From: kjwon15 Date: Thu, 25 Jul 2019 04:32:49 +0900 Subject: [PATCH 1/2] Fix thumbnail height on vertical arrange --- app/src/main/java/jp/juggler/subwaytooter/ItemViewHolder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/jp/juggler/subwaytooter/ItemViewHolder.kt b/app/src/main/java/jp/juggler/subwaytooter/ItemViewHolder.kt index bea11f87..5e90ef19 100644 --- a/app/src/main/java/jp/juggler/subwaytooter/ItemViewHolder.kt +++ b/app/src/main/java/jp/juggler/subwaytooter/ItemViewHolder.kt @@ -3234,7 +3234,7 @@ internal class ItemViewHolder( flMedia = if(verticalArrangeThumbnails) { frameLayout { - lparams(matchParent, wrapContent) { + lparams(matchParent, thumbnailHeight) { topMargin = dip(3) } llMedia = verticalLayout { From 5718dc7993c5624972ff9d5bfd801482f58257ec Mon Sep 17 00:00:00 2001 From: kjwon15 Date: Thu, 25 Jul 2019 05:20:16 +0900 Subject: [PATCH 2/2] Apply thumbnail height to blurhash, not frame --- app/src/main/java/jp/juggler/subwaytooter/ItemViewHolder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/jp/juggler/subwaytooter/ItemViewHolder.kt b/app/src/main/java/jp/juggler/subwaytooter/ItemViewHolder.kt index 5e90ef19..d4e7d612 100644 --- a/app/src/main/java/jp/juggler/subwaytooter/ItemViewHolder.kt +++ b/app/src/main/java/jp/juggler/subwaytooter/ItemViewHolder.kt @@ -3234,7 +3234,7 @@ internal class ItemViewHolder( flMedia = if(verticalArrangeThumbnails) { frameLayout { - lparams(matchParent, thumbnailHeight) { + lparams(matchParent, wrapContent) { topMargin = dip(3) } llMedia = verticalLayout { @@ -3324,7 +3324,7 @@ internal class ItemViewHolder( minHeightCompat = dip(48) - }.lparams(matchParent,wrapContent) + }.lparams(matchParent,thumbnailHeight) } } else {