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

Commit 3725253b authored by James O'Leary's avatar James O'Leary Committed by Automerger Merge Worker
Browse files

Merge "Fix crash when quantizing" into sc-dev am: c7b3b1b5

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13854175

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia3d27df49e4a68e5a4881602a3b3ae0481d5c8a7
parents fcf89429 c7b3b1b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ public class WSMeansQuantizer implements Quantizer {
            // Note: they don't _have_ to be ignored, for example, we could instead turn them
            // opaque. Traditionally, including outside Android, quantizers ignore transparent
            // pixels, so that strategy was chosen.
            int alpha = (pixel >> 24);
            int alpha = (pixel >> 24) & 0xff;
            if (alpha < 255) {
                continue;
            }