From 79df3bfdacc8d8b708297ca3b211de6e523d7206 Mon Sep 17 00:00:00 2001 From: Yun Cheng <129205442+ycheng-kickstarter@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:30:47 -0500 Subject: [PATCH] Fix Add-ons field not appearing on pledge screen (#1937) * Fix Add-ons field not appearing on pledge screen --- .../kickstarter/ui/viewholders/ExpandableHeaderViewHolder.kt | 1 + .../viewmodels/ExpandableHeaderViewHolderViewModel.kt | 1 + .../res/layout/fragment_pledge_section_header_reward_sumary.xml | 2 +- .../viewmodels/ExpandableHeaderViewHolderViewModelTest.kt | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/kickstarter/ui/viewholders/ExpandableHeaderViewHolder.kt b/app/src/main/java/com/kickstarter/ui/viewholders/ExpandableHeaderViewHolder.kt index 8b8f8b1f17..96bf1b94cd 100644 --- a/app/src/main/java/com/kickstarter/ui/viewholders/ExpandableHeaderViewHolder.kt +++ b/app/src/main/java/com/kickstarter/ui/viewholders/ExpandableHeaderViewHolder.kt @@ -1,5 +1,6 @@ package com.kickstarter.ui.viewholders +import android.util.Pair import com.kickstarter.databinding.ExpandableHeaderItemBinding import com.kickstarter.libs.utils.extensions.addToDisposable import com.kickstarter.models.Project diff --git a/app/src/main/java/com/kickstarter/viewmodels/ExpandableHeaderViewHolderViewModel.kt b/app/src/main/java/com/kickstarter/viewmodels/ExpandableHeaderViewHolderViewModel.kt index 3172da072f..37f8071d43 100644 --- a/app/src/main/java/com/kickstarter/viewmodels/ExpandableHeaderViewHolderViewModel.kt +++ b/app/src/main/java/com/kickstarter/viewmodels/ExpandableHeaderViewHolderViewModel.kt @@ -1,5 +1,6 @@ package com.kickstarter.viewmodels +import android.util.Pair import com.kickstarter.libs.Environment import com.kickstarter.libs.utils.extensions.addToDisposable import com.kickstarter.libs.utils.extensions.isNotNull diff --git a/app/src/main/res/layout/fragment_pledge_section_header_reward_sumary.xml b/app/src/main/res/layout/fragment_pledge_section_header_reward_sumary.xml index 0e7e49cc59..47c6458ada 100644 --- a/app/src/main/res/layout/fragment_pledge_section_header_reward_sumary.xml +++ b/app/src/main/res/layout/fragment_pledge_section_header_reward_sumary.xml @@ -46,7 +46,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" - app:layout_constraintGuide_percent="0.60" /> + app:layout_constraintGuide_percent="0.65" />