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

Commit e4a96178 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Loose the translucent condition when estimate splash screen bg color." into udc-qpr-dev

parents 49cc9ce2 7609de36
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -385,8 +385,8 @@ public class SplashscreenContentDrawer {
    private static int estimateWindowBGColor(Drawable themeBGDrawable) {
        final DrawableColorTester themeBGTester = new DrawableColorTester(
                themeBGDrawable, DrawableColorTester.TRANSLUCENT_FILTER /* filterType */);
        if (themeBGTester.passFilterRatio() != 1) {
            // the window background is translucent, unable to draw
        if (themeBGTester.passFilterRatio() < 0.5f) {
            // more than half pixels of the window background is translucent, unable to draw
            Slog.w(TAG, "Window background is translucent, fill background with black color");
            return getSystemBGColor();
        } else {