Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 967464088f07a55d83e7d96018b273cf16c53ed3
Author: George Mount <mount@google.com>
Date: Fri Mar 18 09:50:22 2022
Allow ComposeView to disable consumption of WindowInsets
Fixes: 220943142
Relnote: "The consumeWindowInsets extension property of
ComposeView allows developers to disable consumption of
Android WindowInsets. This allows separate ComposeViews
in the hierarchy to each apply WindowInsets without
interfering with each other."
Test: new test
Change-Id: I0ef08ca81d808408edb932f9326125f99da25bd0
M compose/foundation/foundation-layout/api/restricted_current.txt
M compose/ui/ui/src/androidMain/res/values/ids.xml
M compose/foundation/foundation-layout/src/androidAndroidTest/kotlin/androidx/compose/foundation/layout/WindowInsetsPaddingTest.kt
M compose/foundation/foundation-layout/api/public_plus_experimental_current.txt
M compose/foundation/foundation-layout/src/androidMain/kotlin/androidx/compose/foundation/layout/WindowInsets.android.kt
M compose/foundation/foundation-layout/api/current.txt
https://android-review.googlesource.com/2032584
Branch: androidx-main
commit 967464088f07a55d83e7d96018b273cf16c53ed3
Author: George Mount <mount@google.com>
Date: Fri Mar 18 09:50:22 2022
Allow ComposeView to disable consumption of WindowInsets
Fixes: 220943142
Relnote: "The consumeWindowInsets extension property of
ComposeView allows developers to disable consumption of
Android WindowInsets. This allows separate ComposeViews
in the hierarchy to each apply WindowInsets without
interfering with each other."
Test: new test
Change-Id: I0ef08ca81d808408edb932f9326125f99da25bd0
M compose/foundation/foundation-layout/api/restricted_current.txt
M compose/ui/ui/src/androidMain/res/values/ids.xml
M compose/foundation/foundation-layout/src/androidAndroidTest/kotlin/androidx/compose/foundation/layout/WindowInsetsPaddingTest.kt
M compose/foundation/foundation-layout/api/public_plus_experimental_current.txt
M compose/foundation/foundation-layout/src/androidMain/kotlin/androidx/compose/foundation/layout/WindowInsets.android.kt
M compose/foundation/foundation-layout/api/current.txt
Description
Currently, insets are always consumed by the implementation of
OnApplyWindowInsetsListener
.In accompanist/insets, this view tree consumption behavior was configurable for the interop case of multiple
ComposeView
s or the use of insets at the Activity-level and the Fragment-level.Right now, inner views won't receive any updates since the outer views will consume them.