Skip to content

Commit 2d30047

Browse files
committed
Migrate AttachmentViewHolderFactory to compose
1 parent ab0e1e6 commit 2d30047

File tree

9 files changed

+647
-901
lines changed

9 files changed

+647
-901
lines changed

datacapture/src/androidTest/java/com/google/android/fhir/datacapture/test/views/AttachmentViewHolderFactoryEspressoTest.kt

Lines changed: 192 additions & 90 deletions
Large diffs are not rendered by default.

datacapture/src/main/java/com/google/android/fhir/datacapture/extensions/MoreQuestionnaireItemComponents.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ internal val QuestionnaireItemComponent.maxSizeInMiBs: BigDecimal?
579579
get() = maxSizeInBytes?.div(BYTES_PER_MIB)
580580

581581
/** The default maximum size of an attachment is 1 Mebibytes. */
582-
private val DEFAULT_SIZE = BigDecimal(1048576)
582+
internal val DEFAULT_SIZE = BigDecimal(1048576)
583583

584584
/** Returns true if given size is above maximum size allowed. */
585585
internal fun QuestionnaireItemComponent.isGivenSizeOverLimit(

datacapture/src/main/java/com/google/android/fhir/datacapture/views/attachment/CameraLauncherFragment.kt

Lines changed: 0 additions & 69 deletions
This file was deleted.

datacapture/src/main/java/com/google/android/fhir/datacapture/views/attachment/OpenDocumentLauncherFragment.kt

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)