Folding Feature & state is null always
See original GitHub issueI am using a CompositionLocalProvider like
CompositionLocalProvider(
LocalWindowDpSize provides rememberWindowDpSize(),
LocalWindowLayoutInfo provides windowLayoutInfoState.value,
LocalPosture provides postureState.value
)
and in my composable
LocalWindowLayoutInfo.current.isSeparating
is always false
and
val foldingFeature = LocalWindowLayoutInfo.current.findFoldingFeature()
if (foldingFeature?.state != FoldingFeature.State.HALF_OPENED) {
Text(
stringResource(screen.resourceId),
maxLines = 1,
style = SlackCloneTypography.overline,
)
}
foldingFeature?.state
is always null.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
FoldingFeature - Android Developers
Calculates if a FoldingFeature should be thought of as splitting the window into multiple physical areas that can be seen by users as...
Read more >TripPin Part 10—Basic Query Folding - Microsoft Learn
View function; Replicate OData query folding handlers for: ... (state[Schema]? = null) then GetSchemaForEntity(entity) else state[Schema], ...
Read more >React hook logging a useState element as null when it is not
Did you try passing mappedProps to the function? The original null value is probably captured in the closure. – Kraylog. Sep 1, 2019...
Read more >Fold (higher-order function) - Wikipedia
In functional programming, fold refers to a family of higher-order functions that analyze a recursive data structure and through use of a given...
Read more >Folding composables - DEV Community
collectAsState(null) Scaffold(modifier = Modifier. ... Calculates if a FoldingFeature should be thought of as splitting the window into ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @Anmol92verma, I found the ticket on issuetracker, it seems still fixing on. I’ll trace upcoming versions and let you know if there’s any update!
Cool, thanks @skydoves for confirming on the reproducibility at your end. thanks!