Loading packages/SystemUI/src/com/android/systemui/qs/composefragment/QSFragmentCompose.kt +10 −1 Original line number Diff line number Diff line Loading @@ -746,7 +746,16 @@ constructor( Box( Modifier.systemGestureExclusionInShade( enabled = { layoutState.transitionState is TransitionState.Idle /* * While we are transitioning into QS (either from QQS * or from gone), the global position of the brightness * slider will change in every frame. This causes * the modifier to send a new gesture exclusion * rectangle on every frame. Instead, only apply the * modifier when this is settled. */ layoutState.transitionState is TransitionState.Idle && viewModel.isNotTransitioning } ) ) { Loading packages/SystemUI/src/com/android/systemui/qs/composefragment/viewmodel/QSFragmentComposeViewModel.kt +5 −0 Original line number Diff line number Diff line Loading @@ -312,6 +312,11 @@ constructor( source = containerViewModel.editModeViewModel.isEditing, ) /** True if we are not in an expansion (from Gone to QQS/QS) animation. */ val isNotTransitioning by derivedStateOf { viewTranslationY == 0f && viewAlpha == 1f && constrainedSquishinessFraction == 1f } private val inFirstPage: Boolean get() = inFirstPageViewModel.inFirstPage Loading Loading
packages/SystemUI/src/com/android/systemui/qs/composefragment/QSFragmentCompose.kt +10 −1 Original line number Diff line number Diff line Loading @@ -746,7 +746,16 @@ constructor( Box( Modifier.systemGestureExclusionInShade( enabled = { layoutState.transitionState is TransitionState.Idle /* * While we are transitioning into QS (either from QQS * or from gone), the global position of the brightness * slider will change in every frame. This causes * the modifier to send a new gesture exclusion * rectangle on every frame. Instead, only apply the * modifier when this is settled. */ layoutState.transitionState is TransitionState.Idle && viewModel.isNotTransitioning } ) ) { Loading
packages/SystemUI/src/com/android/systemui/qs/composefragment/viewmodel/QSFragmentComposeViewModel.kt +5 −0 Original line number Diff line number Diff line Loading @@ -312,6 +312,11 @@ constructor( source = containerViewModel.editModeViewModel.isEditing, ) /** True if we are not in an expansion (from Gone to QQS/QS) animation. */ val isNotTransitioning by derivedStateOf { viewTranslationY == 0f && viewAlpha == 1f && constrainedSquishinessFraction == 1f } private val inFirstPage: Boolean get() = inFirstPageViewModel.inFirstPage Loading