Merge "Change PiP stash scoring to distance moved" into tm-dev

This commit is contained in:
Robert Horvath
2022-04-08 06:39:14 +00:00
committed by Android (Google) Code Review

View File

@@ -416,7 +416,7 @@ class TvPipKeepClearAlgorithm(private val clock: () -> Long) {
return stashCandidates.minByOrNull {
val dx = abs(it.left - bounds.left)
val dy = abs(it.top - bounds.top)
dx * bounds.height() + dy * bounds.width()
return@minByOrNull dx + dy
}!!
}