From 7b1aed74b07b808bafd601475e1e378b4bb26754 Mon Sep 17 00:00:00 2001 From: kimyujin-com <80165026+kimyujin-com@users.noreply.github.com> Date: Sun, 18 Feb 2024 00:01:28 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=A1=B8=EC=97=85=EC=98=88=EC=A0=95?= =?UTF-8?q?=EC=9D=BC=20null=20=EC=9D=BC=EB=95=8C=20=EB=A9=98=ED=8A=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/res/layout/fragment_grad_date.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/layout/fragment_grad_date.xml b/app/src/main/res/layout/fragment_grad_date.xml index 94ca895..042dec2 100644 --- a/app/src/main/res/layout/fragment_grad_date.xml +++ b/app/src/main/res/layout/fragment_grad_date.xml @@ -76,7 +76,7 @@ android:layout_marginStart="57dp" android:layout_marginTop="17dp" android:layout_marginEnd="52dp" - android:text="@{String.format(`졸업 예정일 %s`, vm.selectedDate)}" + android:text='@{vm.selectedDate != null ? String.format("졸업 예정일 %s", vm.selectedDate) : "선택해주세요"}' android:textAppearance="@style/MediumFont.14" android:textColor="#555555" app:layout_constraintEnd_toEndOf="@+id/iv_grad_date_card1" @@ -116,7 +116,7 @@ style="@style/BoldFont.30" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@{String.format(`D - %s`, vm.dday)}" + android:text='@{vm.dday != null ? String.format("D - %s", vm.dday) : "D -"}' android:textColor="#7D7D7D" app:layout_constraintBottom_toBottomOf="@+id/iv_grad_date_card2" app:layout_constraintEnd_toEndOf="@+id/iv_grad_date_card2"