diff --git a/ThinkerBell/presentation/src/main/java/com/neverland/thinkerbell/view/setting/ErrorReportFragment.kt b/ThinkerBell/presentation/src/main/java/com/neverland/thinkerbell/view/setting/ErrorReportFragment.kt index 9e9aae0..6e5e801 100644 --- a/ThinkerBell/presentation/src/main/java/com/neverland/thinkerbell/view/setting/ErrorReportFragment.kt +++ b/ThinkerBell/presentation/src/main/java/com/neverland/thinkerbell/view/setting/ErrorReportFragment.kt @@ -73,40 +73,16 @@ class ErrorReportFragment : BaseFragment() { val len = s?.length ?: 0 if (len >= 10) { binding.tvReportComment.visibility = View.GONE - - binding.btnSendReport.setTextColor( - ContextCompat.getColor( - requireContext(), - R.color.primary2 - ) - ) - binding.btnSendReport.background = ContextCompat.getDrawable( - requireContext(), - R.drawable.shape_keyword_add_button_bg - ) - binding.btnSendReport.isClickable = true - } else { - binding.tvReportComment.visibility = View.VISIBLE - - binding.btnSendReport.setTextColor( - ContextCompat.getColor( - requireContext(), - R.color.red_gray_100 - ) - ) - binding.btnSendReport.background = ColorDrawable( - ContextCompat.getColor( - requireContext(), - R.color.red_gray_300 - ) - ) - binding.btnSendReport.isClickable = false } } }) binding.btnSendReport.setOnClickListener { - viewModel.postErrorReport(binding.etReport.text.toString()) + if(binding.etReport.text.length < 10) { + binding.tvReportComment.visibility = View.VISIBLE + } else { + viewModel.postErrorReport(binding.etReport.text.toString()) + } } } } \ No newline at end of file diff --git a/ThinkerBell/presentation/src/main/res/layout/fragment_error_report.xml b/ThinkerBell/presentation/src/main/res/layout/fragment_error_report.xml index 7ac609f..2f2780b 100644 --- a/ThinkerBell/presentation/src/main/res/layout/fragment_error_report.xml +++ b/ThinkerBell/presentation/src/main/res/layout/fragment_error_report.xml @@ -75,10 +75,11 @@ android:gravity="top|start" style="@style/Paragraph_Medium" android:textColor="@color/primary3" - android:hint="어떤 오류가 발생했나요?" + android:hint="10자 이상, 200자 이하로 입력해주세요." android:textColorHint="@color/red_gray_400" - android:background="@drawable/shape_error_report_bg"/> + android:background="@drawable/shape_error_report_bg" + tools:ignore="Autofill" /> @@ -100,9 +102,9 @@ style="@style/Heading_Medium" android:layout_width="178dp" android:layout_height="56dp" - android:background="@color/red_gray_300" + android:background="@drawable/shape_keyword_add_button_bg" android:text="신고하기" - android:textColor="@color/red_gray_100" + android:textColor="@color/primary2" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent"