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

Commit d2845632 authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Update keyguard root view alpha if udfps refactor flag is enabled

Flag: ACONFIG com.android.systemui.device_entry_udfps_refactor TEAMFOOD
Test: manually disable keyguard_bottom_area flag and enable
device_entry_udfps_refactor flag. Swipe up on the device
with just an unlock icon and see device entry icon fades.
Fixes: 329365118

Change-Id: If832d140a8b85237a33806ec5b038d04d397b2ca
parent 7e37a4b0
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ import com.android.systemui.common.shared.model.Text
import com.android.systemui.common.shared.model.TintedIcon
import com.android.systemui.common.ui.ConfigurationState
import com.android.systemui.deviceentry.domain.interactor.DeviceEntryHapticsInteractor
import com.android.systemui.deviceentry.shared.DeviceEntryUdfpsRefactor
import com.android.systemui.keyguard.shared.model.KeyguardState
import com.android.systemui.keyguard.shared.model.TransitionState
import com.android.systemui.keyguard.ui.viewmodel.BurnInParameters
@@ -142,15 +143,17 @@ object KeyguardRootViewBinder {
                        }
                    }

                    if (keyguardBottomAreaRefactor()) {
                    if (keyguardBottomAreaRefactor() || DeviceEntryUdfpsRefactor.isEnabled) {
                        launch {
                            viewModel.alpha(viewState).collect { alpha ->
                                view.alpha = alpha
                                if (keyguardBottomAreaRefactor()) {
                                    childViews[statusViewId]?.alpha = alpha
                                    childViews[burnInLayerId]?.alpha = alpha
                                }
                            }
                        }
                    }

                    if (migrateClocksToBlueprint()) {
                        launch {