Loading packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/TopAreaSection.kt +9 −22 Original line number Diff line number Diff line Loading @@ -83,11 +83,7 @@ constructor( } val state = remember { MutableSceneTransitionLayoutState( currentScene, ClockTransition.defaultClockTransitions, enableInterruptions = false, ) MutableSceneTransitionLayoutState(currentScene, ClockTransition.defaultClockTransitions) } // Update state whenever currentSceneKey has changed. Loading @@ -102,7 +98,7 @@ constructor( scene(splitShadeLargeClockScene) { LargeClockWithSmartSpace( smartSpacePaddingTop = smartSpacePaddingTop, shouldOffSetClockToOneHalf = !hasCustomPositionUpdatedAnimation shouldOffSetClockToOneHalf = !hasCustomPositionUpdatedAnimation, ) } Loading @@ -114,21 +110,15 @@ constructor( } scene(smallClockScene) { SmallClockWithSmartSpace( smartSpacePaddingTop = smartSpacePaddingTop, ) SmallClockWithSmartSpace(smartSpacePaddingTop = smartSpacePaddingTop) } scene(largeClockScene) { LargeClockWithSmartSpace( smartSpacePaddingTop = smartSpacePaddingTop, ) LargeClockWithSmartSpace(smartSpacePaddingTop = smartSpacePaddingTop) } scene(WeatherClockScenes.largeClockScene) { WeatherLargeClockWithSmartSpace( smartSpacePaddingTop = smartSpacePaddingTop, ) WeatherLargeClockWithSmartSpace(smartSpacePaddingTop = smartSpacePaddingTop) } scene(WeatherClockScenes.splitShadeLargeClockScene) { Loading @@ -154,7 +144,7 @@ constructor( SmallClock( burnInParams = burnIn.parameters, onTopChanged = burnIn.onSmallClockTopChanged, modifier = Modifier.wrapContentSize() modifier = Modifier.wrapContentSize(), ) } with(smartSpaceSection) { Loading Loading @@ -202,7 +192,7 @@ constructor( y = 0, ) } } }, ) } } Loading @@ -226,10 +216,7 @@ constructor( Column(modifier = modifier) { val currentClock = currentClockState.value ?: return@Column with(weatherClockSection) { Time( clock = currentClock, burnInParams = burnIn.parameters, ) Time(clock = currentClock, burnInParams = burnIn.parameters) } val density = LocalDensity.current val context = LocalContext.current Loading @@ -242,7 +229,7 @@ constructor( modifier = Modifier.heightIn( min = getDimen(context, "enhanced_smartspace_height", density) ) ), ) } with(weatherClockSection) { Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/TopAreaSection.kt +9 −22 Original line number Diff line number Diff line Loading @@ -83,11 +83,7 @@ constructor( } val state = remember { MutableSceneTransitionLayoutState( currentScene, ClockTransition.defaultClockTransitions, enableInterruptions = false, ) MutableSceneTransitionLayoutState(currentScene, ClockTransition.defaultClockTransitions) } // Update state whenever currentSceneKey has changed. Loading @@ -102,7 +98,7 @@ constructor( scene(splitShadeLargeClockScene) { LargeClockWithSmartSpace( smartSpacePaddingTop = smartSpacePaddingTop, shouldOffSetClockToOneHalf = !hasCustomPositionUpdatedAnimation shouldOffSetClockToOneHalf = !hasCustomPositionUpdatedAnimation, ) } Loading @@ -114,21 +110,15 @@ constructor( } scene(smallClockScene) { SmallClockWithSmartSpace( smartSpacePaddingTop = smartSpacePaddingTop, ) SmallClockWithSmartSpace(smartSpacePaddingTop = smartSpacePaddingTop) } scene(largeClockScene) { LargeClockWithSmartSpace( smartSpacePaddingTop = smartSpacePaddingTop, ) LargeClockWithSmartSpace(smartSpacePaddingTop = smartSpacePaddingTop) } scene(WeatherClockScenes.largeClockScene) { WeatherLargeClockWithSmartSpace( smartSpacePaddingTop = smartSpacePaddingTop, ) WeatherLargeClockWithSmartSpace(smartSpacePaddingTop = smartSpacePaddingTop) } scene(WeatherClockScenes.splitShadeLargeClockScene) { Loading @@ -154,7 +144,7 @@ constructor( SmallClock( burnInParams = burnIn.parameters, onTopChanged = burnIn.onSmallClockTopChanged, modifier = Modifier.wrapContentSize() modifier = Modifier.wrapContentSize(), ) } with(smartSpaceSection) { Loading Loading @@ -202,7 +192,7 @@ constructor( y = 0, ) } } }, ) } } Loading @@ -226,10 +216,7 @@ constructor( Column(modifier = modifier) { val currentClock = currentClockState.value ?: return@Column with(weatherClockSection) { Time( clock = currentClock, burnInParams = burnIn.parameters, ) Time(clock = currentClock, burnInParams = burnIn.parameters) } val density = LocalDensity.current val context = LocalContext.current Loading @@ -242,7 +229,7 @@ constructor( modifier = Modifier.heightIn( min = getDimen(context, "enhanced_smartspace_height", density) ) ), ) } with(weatherClockSection) { Loading