Skip to content

Commit

Permalink
apply: korean subject marker extension
Browse files Browse the repository at this point in the history
  • Loading branch information
moon0900 committed Dec 15, 2024
1 parent 3f603e4 commit 7a1a963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ResultAllergyCautionFragment : Fragment() {
val commonAllergyInKorean = commonAllergies.mapNotNull { engToKor[it] }
allergyCautionString = commonAllergyInKorean.joinToString(", ")
Log.d("Allergy Caution", "${detectedAllergyData} ${userAllergyData} ${commonAllergies}")
binding.algCautionText2.setText("이 식품에 ${allergyCautionString} 함유되어있어요")
binding.algCautionText2.setText("이 식품에 ${allergyCautionString.addSubjectMarker()} 함유되어있어요")
}

binding.algCautionText1.setText(AppUser.info?.name + binding.algCautionText1.text)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/dna/beyoureyes/util/TTSManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class TTSManager(context: Context) :
if (commonAllergy.isEmpty()) { // 사용자 - 식품 알러지 교집합 X
"당신의 알러지 성분은 함유되어 있지 않네요. "
} else { // 사용자 - 식품 알러지 교집합 O
"주의하세요. 해당 식품에는 당신이 유의해야 할 ${commonAllergy.joinToString().addSubjectMarker()} 함유되어 있습니다. "
"주의하세요. 해당 식품에는 당신이 유의해야 할, ${commonAllergy.joinToString(", ").addSubjectMarker()} 함유되어 있습니다. "
}
}
} ?: run { null } // 인식 정보 X
Expand Down

0 comments on commit 7a1a963

Please sign in to comment.