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

Commit 85c6db27 authored by Robert Horvath's avatar Robert Horvath Committed by Android (Google) Code Review
Browse files

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

parents fe566836 06bab93a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
        }!!
    }