Loading packages/SystemUI/res/xml/combined_qs_header_scene.xml +5 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,11 @@ </KeyFrameSet> </Transition> <Transition android:id="@+id/large_screen_header_transition" app:constraintSetStart="@id/large_screen_header_constraint" app:constraintSetEnd="@id/large_screen_header_constraint"/> <Include app:constraintSet="@xml/large_screen_shade_header"/> <Include app:constraintSet="@xml/qs_header"/> Loading packages/SystemUI/src/com/android/systemui/shade/LargeScreenShadeHeaderController.kt +15 −6 Original line number Diff line number Diff line Loading @@ -101,6 +101,8 @@ class LargeScreenShadeHeaderController @Inject constructor( @VisibleForTesting internal val HEADER_TRANSITION_ID = R.id.header_transition @VisibleForTesting internal val LARGE_SCREEN_HEADER_TRANSITION_ID = R.id.large_screen_header_transition @VisibleForTesting internal val QQS_HEADER_CONSTRAINT = R.id.qqs_header_constraint @VisibleForTesting internal val QS_HEADER_CONSTRAINT = R.id.qs_header_constraint Loading Loading @@ -429,8 +431,11 @@ class LargeScreenShadeHeaderController @Inject constructor( } header as MotionLayout if (largeScreenActive) { header.getConstraintSet(LARGE_SCREEN_HEADER_CONSTRAINT).applyTo(header) logInstantEvent("Large screen constraints set") header.setTransition(HEADER_TRANSITION_ID) header.transitionToStart() } else { logInstantEvent("Small screen constraints set") header.setTransition(HEADER_TRANSITION_ID) header.transitionToStart() updatePosition() Loading @@ -440,13 +445,17 @@ class LargeScreenShadeHeaderController @Inject constructor( private fun updatePosition() { if (header is MotionLayout && !largeScreenActive && visible) { logInstantEvent("updatePosition: $qsExpandedFraction") header.progress = qsExpandedFraction } } private fun logInstantEvent(message: String) { Trace.instantForTrack( TRACE_TAG_APP, "LargeScreenHeaderController - updatePosition", "position: $qsExpandedFraction" "LargeScreenHeaderController", message ) header.progress = qsExpandedFraction } } private fun updateListeners() { Loading Loading
packages/SystemUI/res/xml/combined_qs_header_scene.xml +5 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,11 @@ </KeyFrameSet> </Transition> <Transition android:id="@+id/large_screen_header_transition" app:constraintSetStart="@id/large_screen_header_constraint" app:constraintSetEnd="@id/large_screen_header_constraint"/> <Include app:constraintSet="@xml/large_screen_shade_header"/> <Include app:constraintSet="@xml/qs_header"/> Loading
packages/SystemUI/src/com/android/systemui/shade/LargeScreenShadeHeaderController.kt +15 −6 Original line number Diff line number Diff line Loading @@ -101,6 +101,8 @@ class LargeScreenShadeHeaderController @Inject constructor( @VisibleForTesting internal val HEADER_TRANSITION_ID = R.id.header_transition @VisibleForTesting internal val LARGE_SCREEN_HEADER_TRANSITION_ID = R.id.large_screen_header_transition @VisibleForTesting internal val QQS_HEADER_CONSTRAINT = R.id.qqs_header_constraint @VisibleForTesting internal val QS_HEADER_CONSTRAINT = R.id.qs_header_constraint Loading Loading @@ -429,8 +431,11 @@ class LargeScreenShadeHeaderController @Inject constructor( } header as MotionLayout if (largeScreenActive) { header.getConstraintSet(LARGE_SCREEN_HEADER_CONSTRAINT).applyTo(header) logInstantEvent("Large screen constraints set") header.setTransition(HEADER_TRANSITION_ID) header.transitionToStart() } else { logInstantEvent("Small screen constraints set") header.setTransition(HEADER_TRANSITION_ID) header.transitionToStart() updatePosition() Loading @@ -440,13 +445,17 @@ class LargeScreenShadeHeaderController @Inject constructor( private fun updatePosition() { if (header is MotionLayout && !largeScreenActive && visible) { logInstantEvent("updatePosition: $qsExpandedFraction") header.progress = qsExpandedFraction } } private fun logInstantEvent(message: String) { Trace.instantForTrack( TRACE_TAG_APP, "LargeScreenHeaderController - updatePosition", "position: $qsExpandedFraction" "LargeScreenHeaderController", message ) header.progress = qsExpandedFraction } } private fun updateListeners() { Loading