Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into DialogUpdates3
Browse files Browse the repository at this point in the history
# Conflicts:
#	compose-material/src/main/java/com/google/android/horologist/compose/material/Confirmation.kt
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_alarmConfirmationScreen[0]_mobvoiticwatchpro5.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_alarmConfirmationScreen[1]_samsunggalaxywatch5.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_alarmConfirmationScreen[2]_samsunggalaxywatch6large.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_alarmConfirmationScreen[3]_googlepixelwatch.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_alarmConfirmationScreen[4]_genericsmallround.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_alarmConfirmationScreen[5]_genericlargeround.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_alarmConfirmationScreen[6]_smalldevicebigfonts.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_alarmConfirmationScreen[7]_largedevicesmallfonts.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[0]_mobvoiticwatchpro5.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[0]_mobvoiticwatchpro5_2.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[1]_samsunggalaxywatch5.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[1]_samsunggalaxywatch5_2.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[2]_samsunggalaxywatch6large.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[2]_samsunggalaxywatch6large_2.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[3]_googlepixelwatch.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[3]_googlepixelwatch_2.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[4]_genericsmallround.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[4]_genericsmallround_2.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[5]_genericlargeround.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[5]_genericlargeround_2.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[6]_smalldevicebigfonts.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[6]_smalldevicebigfonts_2.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[7]_largedevicesmallfonts.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_batterySaverScreen[7]_largedevicesmallfonts_2.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_iconAndTextAlertScreen[0]_mobvoiticwatchpro5.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_iconAndTextAlertScreen[1]_samsunggalaxywatch5.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_iconAndTextAlertScreen[2]_samsunggalaxywatch6large.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_iconAndTextAlertScreen[3]_googlepixelwatch.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_iconAndTextAlertScreen[4]_genericsmallround.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_iconAndTextAlertScreen[5]_genericlargeround.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_iconAndTextAlertScreen[6]_smalldevicebigfonts.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_iconAndTextAlertScreen[7]_largedevicesmallfonts.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_textAlertScreen[0]_mobvoiticwatchpro5.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_textAlertScreen[1]_samsunggalaxywatch5.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_textAlertScreen[2]_samsunggalaxywatch6large.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_textAlertScreen[3]_googlepixelwatch.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_textAlertScreen[4]_genericsmallround.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_textAlertScreen[5]_genericlargeround.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_textAlertScreen[6]_smalldevicebigfonts.png
#	sample/src/test/snapshots/images/com.google.android.horologist.screensizes_DialogTest_textAlertScreen[7]_largedevicesmallfonts.png
  • Loading branch information
stevebower committed Jan 26, 2024
2 parents d4901a7 + a060669 commit bbeab8c
Show file tree
Hide file tree
Showing 43 changed files with 90 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ public fun Confirmation(
title: String? = null,
durationMillis: Long = DialogDefaults.ShortDurationMillis,
columnState: ScalingLazyColumnState = rememberColumnState(
ScalingLazyColumnDefaults.responsive(
verticalArrangement = DialogDefaults.ConfirmationVerticalArrangement,
),
ScalingLazyColumnDefaults.responsive(),
),
) {
// Always refer to the latest inputs with which Confirmation was recomposed.
Expand All @@ -74,7 +72,7 @@ public fun Confirmation(
) ?: durationMillis

LaunchedEffect(showDialog, a11yDurationMillis) {
if (showDialog) {
if (showDialog == true) {
delay(a11yDurationMillis)
currentOnDismissed()
}
Expand All @@ -101,9 +99,7 @@ public fun ConfirmationContent(
icon: @Composable (() -> Unit)? = null,
title: String? = null,
columnState: ScalingLazyColumnState = rememberColumnState(
ScalingLazyColumnDefaults.responsive(
verticalArrangement = DialogDefaults.ConfirmationVerticalArrangement,
),
ScalingLazyColumnDefaults.responsive(),
),
showPositionIndicator: Boolean = true,
) {
Expand Down
5 changes: 5 additions & 0 deletions docs/compose-layout.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Compose Layout library

> [!IMPORTANT]
> All the examples on this page make use of imports from Horologist's `compose-layout` and `compose-material`.
> Add these dependencies and imports to ensure you are using the Horologist version of components with the same
> name in Wear Compose, for example `Chip`.
## ScalingLazyColumn responsive() layout.

The `responsive()` layout factory will ensure that your ScalingLazyColumn is positioned correctly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ import com.google.android.horologist.compose.material.ResponsiveDialogContent
import com.google.android.horologist.compose.material.ToggleChip
import com.google.android.horologist.compose.material.ToggleChipToggleControl
import com.google.android.horologist.compose.tools.Device
import com.google.android.horologist.screenshots.ScreenshotTestRule
import kotlinx.coroutines.runBlocking
import org.junit.Test

class DialogTest(device: Device) : ScreenSizeTest(
device = device,
showTimeText = false,
recordMode = ScreenshotTestRule.RecordMode.Record,
) {

@Composable
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bbeab8c

Please sign in to comment.