Skip to content

Commit

Permalink
Add flyover text as secondary dialog title (google#2648)
Browse files Browse the repository at this point in the history
* Add flyover text as secondary dialog title

* spotless

* Add doc
  • Loading branch information
FikriMilano authored and ndegwamartin committed Sep 10, 2024
1 parent cd6268e commit e0cebb2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ internal object QuestionnaireItemDialogSelectViewHolderFactory :
View.OnClickListener {
val fragment =
OptionSelectDialogFragment(
title = questionnaireItem.localizedTextSpanned ?: "",
// We use the question text for the dialog title. If there is no question text, we
// use flyover text as it is sometimes used in text fields instead of question text.
title = questionnaireItem.localizedTextSpanned
?: questionnaireItem.localizedFlyoverSpanned ?: "",
config = questionnaireItem.buildConfig(),
selectedOptions = selectedOptions,
)
Expand Down

0 comments on commit e0cebb2

Please sign in to comment.