Skip to content

Commit

Permalink
Update CanonicalLayouts/list-detail-compose/app/src/main/java/com/exa…
Browse files Browse the repository at this point in the history
…mple/listdetailcompose/ui/ListDetailSample.kt

Co-authored-by: Alex Vanyo <[email protected]>
  • Loading branch information
tiwiz and alexvanyo authored Sep 6, 2024
1 parent 9b16e3c commit fe89cf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fun ListDetailSample() {
var selectedWordIndex: Int? by rememberSaveable { mutableStateOf(null) }
val navigator = rememberListDetailPaneScaffoldNavigator<Nothing>()
val isListAndDetailVisible =
currentWindowAdaptiveInfo().windowSizeClass.windowWidthSizeClass == WindowWidthSizeClass.EXPANDED
navigator.scaffoldValue[ListDetailPaneScaffoldRole.Detail] == PaneAdaptedValue.Expanded && navigator.scaffoldValue[ListDetailPaneScaffoldRole.List] == PaneAdaptedValue.Expanded

BackHandler(enabled = navigator.canNavigateBack()) {
navigator.navigateBack()
Expand Down

0 comments on commit fe89cf6

Please sign in to comment.