-
Notifications
You must be signed in to change notification settings - Fork 320
Migrate AutoCompleteTextViewHolderFactory to compose #2899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
0c952a4 to
8d31f4b
Compare
ab0e1e6 to
73146c0
Compare
| start = 16.dp, | ||
| top = | ||
| if (selectedOptions.isNotEmpty()) { | ||
| with(density) { chipContainerHeight.toDp() } + 16.dp | ||
| } else { | ||
| 16.dp | ||
| }, | ||
| end = 16.dp, | ||
| bottom = 16.dp, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should use dimensionResource?
|
|
||
| // TODO: Set text gravity using Modifier | ||
| // .align(Alignment.BottomCenter) | ||
| MultiAutoCompleteTextItem( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this todo be addressed in this pr?
| val questionnaireResponseAnswer = | ||
| questionnaireViewItem.enabledAnswerOptions | ||
| .first { it.value.identifierString(context) == answerOption.answerId } | ||
| .valueCoding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we use firstOrNull? I noticed it's being used in DropdownViewHolderFactory too
|
pr looks good. thanks. pls add a video. |
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2897
Description
Clear and concise code change description.
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: (Bug fix | Feature | Documentation | Testing | Code health | Builds | Releases | Other)
Screenshots (if applicable)
Checklist
./gradlew spotlessApplyand./gradlew spotlessCheckto check my code follows the style guide of this project../gradlew checkand./gradlew connectedCheckto test my changes locally.