Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 472a4874 authored by Andy CrossGate Yan's avatar Andy CrossGate Yan Committed by Jan Altensen
Browse files

SystemUI: Fix burn-in translations not applying to keyguard slices

Change-Id: Ic559f53de2ba2ee701f8e2335f7494dc91abb5c3
parent de6640e9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -190,6 +190,7 @@ object KeyguardRootViewBinder {
                                if (KeyguardBottomAreaRefactor.isEnabled) {
                                    childViews[statusViewId]?.alpha = alpha
                                    childViews[burnInLayerId]?.alpha = alpha
                                    childViews[sliceViewId]?.alpha = alpha
                                }
                            }
                        }
@@ -203,6 +204,7 @@ object KeyguardRootViewBinder {
                            // same as translationX
                            viewModel.translationY.collect { y ->
                                childViews[burnInLayerId]?.translationY = y
                                childViews[sliceViewId]?.translationY = y
                                childViews[largeClockId]?.translationY = y
                                childViews[aodNotificationIconContainerId]?.translationY = y
                            }
@@ -215,6 +217,7 @@ object KeyguardRootViewBinder {
                                    state.isToOrFrom(KeyguardState.AOD) -> {
                                        // Large Clock is not translated in the x direction
                                        childViews[burnInLayerId]?.translationX = px
                                        childViews[sliceViewId]?.translationX = px
                                        childViews[aodNotificationIconContainerId]?.translationX =
                                            px
                                    }
@@ -273,6 +276,7 @@ object KeyguardRootViewBinder {
                        launch {
                            viewModel.burnInLayerVisibility.collect { visibility ->
                                childViews[burnInLayerId]?.visibility = visibility
                                childViews[sliceViewId]?.visibility = visibility
                            }
                        }

@@ -665,6 +669,7 @@ object KeyguardRootViewBinder {

    private val statusViewId = R.id.keyguard_status_view
    private val burnInLayerId = R.id.burn_in_layer
    private val sliceViewId = R.id.keyguard_slice_view
    private val aodNotificationIconContainerId = R.id.aod_notification_icon_container
    private val largeClockId = R.id.lockscreen_clock_view_large
    private val smallClockId = R.id.lockscreen_clock_view