diff options
| author | 2025-02-24 14:01:00 -0800 | |
|---|---|---|
| committer | 2025-02-24 14:01:00 -0800 | |
| commit | 9bbb30324a201105613e1c6843d855ff0a0375b1 (patch) | |
| tree | 21903b6b6e298c43642d0f9e58fa39d16155954f | |
| parent | d167925a7c3fc018130cebe15daefa754f1b0e1f (diff) | |
| parent | b023af0c06e6b334c9b707778bb140b350a40f79 (diff) | |
Merge "Fix QS notification scrim clipping being affected by offset" into main
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/composefragment/QSFragmentCompose.kt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/composefragment/QSFragmentCompose.kt b/packages/SystemUI/src/com/android/systemui/qs/composefragment/QSFragmentCompose.kt index 71eacdf05cfd..e0b93fb7f4c7 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/composefragment/QSFragmentCompose.kt +++ b/packages/SystemUI/src/com/android/systemui/qs/composefragment/QSFragmentCompose.kt @@ -252,8 +252,12 @@ constructor( Box( modifier = Modifier.graphicsLayer { alpha = viewModel.viewAlpha } + .thenIf(notificationScrimClippingParams.isEnabled) { + Modifier.notificationScrimClip { + notificationScrimClippingParams.params + } + } .thenIf(!Flags.notificationShadeBlur()) { - // Clipping before translation to match QSContainerImpl.onDraw Modifier.offset { IntOffset( x = 0, @@ -261,11 +265,6 @@ constructor( ) } } - .thenIf(notificationScrimClippingParams.isEnabled) { - Modifier.notificationScrimClip { - notificationScrimClippingParams.params - } - } // Disable touches in the whole composable while the mirror is // showing. While the mirror is showing, an ancestor of the // ComposeView is made alpha 0, but touches are still being captured |