Merge "Change PiP stash scoring to distance moved" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
85c6db27a4
@@ -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
|
||||
}!!
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user