Skip to content

Commit

Permalink
spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmost committed Oct 7, 2021
1 parent daf2736 commit add738d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ internal class QuestionnaireItemAdapter(
questionnaireItemViewItem: QuestionnaireItemViewItem
): QuestionnaireItemViewHolderType {
val questionnaireItem = questionnaireItemViewItem.questionnaireItem

// Use the view type that the client wants if they specified an itemControl
return questionnaireItem.itemControl?.viewHolderType
// Otherwise, choose a sensible UI element automatically
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ private sealed class OptionSelectRow {
/** A predefined option. */
data class Option(val option: OptionSelectOption) : OptionSelectRow()

/** "Other" option. Only shown if [OptionSelectDialogFragment.Config.otherOptionsAllowed] is true. */
/**
* "Other" option. Only shown if [OptionSelectDialogFragment.Config.otherOptionsAllowed] is true.
*/
data class OtherRow(val selected: Boolean) : OptionSelectRow()

/** Text boxes for user to enter "Other" options in. Only shown when [OtherRow] is selected. */
Expand Down Expand Up @@ -322,7 +324,9 @@ private sealed class OptionSelectViewHolder(parent: ViewGroup, layout: Int) :
val checkbox: CheckBox = itemView.findViewById(R.id.checkbox)
}

/** Freeform option, only shown if [OptionSelectDialogFragment.Config.otherOptionsAllowed] is true. */
/**
* Freeform option, only shown if [OptionSelectDialogFragment.Config.otherOptionsAllowed] is true.
*/
class OtherEditText(parent: ViewGroup) :
OptionSelectViewHolder(parent, R.layout.questionnaire_item_option_item_other_text) {
val editText: EditText = itemView.findViewById(R.id.edit_text)
Expand All @@ -339,7 +343,9 @@ private sealed class OptionSelectViewHolder(parent: ViewGroup, layout: Int) :
}
}

/** Freeform option, only shown if [OptionSelectDialogFragment.Config.otherOptionsAllowed] is true. */
/**
* Freeform option, only shown if [OptionSelectDialogFragment.Config.otherOptionsAllowed] is true.
*/
class OtherAddAnother(parent: ViewGroup) :
OptionSelectViewHolder(parent, R.layout.questionnaire_item_option_item_other_add_another) {
val addAnother: Button = itemView.findViewById(R.id.add_another)
Expand Down

0 comments on commit add738d

Please sign in to comment.