Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -791,11 +791,7 @@ fun VideoQualitySetting(
}
},
popupContents = {
Column(
Modifier
.selectableGroup()
.verticalScroll(rememberScrollState())
) {
Column(Modifier.selectableGroup()) {
SingleChoiceSelector(
modifier = Modifier.testTag(
getVideoQualityOptionTestTag(VideoQuality.UNSPECIFIED)
Expand Down Expand Up @@ -920,10 +916,18 @@ fun BasicPopupSetting(
},
title = { Text(text = title) },
text = {
MaterialTheme(
colorScheme = MaterialTheme.colorScheme.copy(surface = Color.Transparent),
content = popupContents
)
// Apply a scroll state to ensure content is reachable
val scrollState = rememberScrollState()
Column(
modifier = Modifier
.testTag(CONTAINER_DIALOG_CONTENTS)
.verticalScroll(scrollState)
Comment thread
Kimblebee marked this conversation as resolved.
) {
MaterialTheme(
colorScheme = MaterialTheme.colorScheme.copy(surface = Color.Transparent),
content = popupContents
)
}
}
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ package com.google.jetpackcamera.settings.ui
const val SETTINGS_TITLE = "SettingsTitle"
const val BACK_BUTTON = "BackButton"
const val CLOSE_BUTTON = "CloseButton"
const val CONTAINER_DIALOG_CONTENTS = "dialog_contents_container"

// unsupported rationale tags
const val DEVICE_UNSUPPORTED_TAG = "DeviceUnsupportedTag"
Expand Down
Loading