Loading packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/ClockSection.kt +5 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,9 @@ import kotlinx.coroutines.DisposableHandle internal fun ConstraintSet.setVisibility(views: Iterable<View>, visibility: Int) = views.forEach { view -> this.setVisibility(view.id, visibility) } internal fun ConstraintSet.setAlpha(views: Iterable<View>, alpha: Float) = views.forEach { view -> this.setAlpha(view.id, alpha) } internal fun ConstraintSet.setScaleX(views: Iterable<View>, scaleX: Float) = views.forEach { view -> this.setScaleX(view.id, scaleX) } Loading Loading @@ -125,6 +128,8 @@ constructor( return constraintSet.apply { setVisibility(getTargetClockFace(clock).views, VISIBLE) setVisibility(getNonTargetClockFace(clock).views, GONE) setAlpha(getTargetClockFace(clock).views, 1F) setAlpha(getNonTargetClockFace(clock).views, 0F) if (!keyguardClockViewModel.isLargeClockVisible.value) { connect(sharedR.id.bc_smartspace_view, TOP, sharedR.id.date_smartspace_view, BOTTOM) } else { Loading Loading
packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/ClockSection.kt +5 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,9 @@ import kotlinx.coroutines.DisposableHandle internal fun ConstraintSet.setVisibility(views: Iterable<View>, visibility: Int) = views.forEach { view -> this.setVisibility(view.id, visibility) } internal fun ConstraintSet.setAlpha(views: Iterable<View>, alpha: Float) = views.forEach { view -> this.setAlpha(view.id, alpha) } internal fun ConstraintSet.setScaleX(views: Iterable<View>, scaleX: Float) = views.forEach { view -> this.setScaleX(view.id, scaleX) } Loading Loading @@ -125,6 +128,8 @@ constructor( return constraintSet.apply { setVisibility(getTargetClockFace(clock).views, VISIBLE) setVisibility(getNonTargetClockFace(clock).views, GONE) setAlpha(getTargetClockFace(clock).views, 1F) setAlpha(getNonTargetClockFace(clock).views, 0F) if (!keyguardClockViewModel.isLargeClockVisible.value) { connect(sharedR.id.bc_smartspace_view, TOP, sharedR.id.date_smartspace_view, BOTTOM) } else { Loading