Skip to content
Snippets Groups Projects
Commit 924b60cb authored by Matt Pietal's avatar Matt Pietal Committed by Android (Google) Code Review
Browse files

Merge "Remove AoD icons from burn in layer" into main

parents a775324f cd1a93c7
No related branches found
No related tags found
No related merge requests found
......@@ -191,6 +191,7 @@ object KeyguardRootViewBinder {
.collect { y ->
childViews[burnInLayerId]?.translationY = y
childViews[largeClockId]?.translationY = y
childViews[aodNotificationIconContainerId]?.translationY = y
}
}
......@@ -200,6 +201,7 @@ object KeyguardRootViewBinder {
.collect { x ->
childViews[burnInLayerId]?.translationX = x
childViews[largeClockId]?.translationX = x
childViews[aodNotificationIconContainerId]?.translationX = x
}
}
......@@ -219,6 +221,10 @@ object KeyguardRootViewBinder {
// transition with other parts in burnInLayer
childViews[burnInLayerId]?.scaleX = scaleViewModel.scale
childViews[burnInLayerId]?.scaleY = scaleViewModel.scale
childViews[aodNotificationIconContainerId]?.scaleX =
scaleViewModel.scale
childViews[aodNotificationIconContainerId]?.scaleY =
scaleViewModel.scale
}
}
}
......
......@@ -41,11 +41,13 @@ constructor(
return
}
val nic = constraintLayout.requireViewById<View>(R.id.aod_notification_icon_container)
// The burn-in layer requires at least 1 view at all times
val emptyView = View(context, null).apply { id = View.generateViewId() }
constraintLayout.addView(emptyView)
burnInLayer =
AodBurnInLayer(context).apply {
id = R.id.burn_in_layer
addView(nic)
addView(emptyView)
if (!migrateClocksToBlueprint()) {
val statusView =
constraintLayout.requireViewById<View>(R.id.keyguard_status_view)
......
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