Skip to content
Snippets Groups Projects
Commit dd7be51e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update keyguard root view alpha if udfps refactor flag is enabled" into main

parents 50dcbf38 d2845632
No related branches found
No related tags found
No related merge requests found
......@@ -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,12 +143,14 @@ object KeyguardRootViewBinder {
}
}
if (keyguardBottomAreaRefactor()) {
if (keyguardBottomAreaRefactor() || DeviceEntryUdfpsRefactor.isEnabled) {
launch {
viewModel.alpha(viewState).collect { alpha ->
view.alpha = alpha
childViews[statusViewId]?.alpha = alpha
childViews[burnInLayerId]?.alpha = alpha
if (keyguardBottomAreaRefactor()) {
childViews[statusViewId]?.alpha = alpha
childViews[burnInLayerId]?.alpha = alpha
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment