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

Commit 425d9c5a authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Upstream update

Pulling changes from support library

Test: non-applicable
Change-Id: Ibacca48ad78a39739793b6400b7fcb19447d26db
parent 072661f5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -376,7 +376,9 @@ final class ColorCutQuantizer {
            for (int i = mLowerIndex, count = 0; i <= mUpperIndex; i++)  {
                count += hist[colors[i]];
                if (count >= midPoint) {
                    return i;
                    // we never want to split on the upperIndex, as this will result in the same
                    // box
                    return Math.min(mUpperIndex - 1, i);
                }
            }