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

Commit 4af61d89 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ignore to show splash screen if the decorView is not opaque" into rvc-qpr-dev

parents f4a788be 877a2da3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2410,6 +2410,15 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            wm = (WindowManager) context.getSystemService(WINDOW_SERVICE);
            view = win.getDecorView();

            // Ignore to show splash screen if the decorView is not opaque.
            if (!view.isOpaque()) {
                if (DEBUG_SPLASH_SCREEN) {
                    Slog.d(TAG, "addSplashScreen: the view of " + packageName
                            + " is not opaque, cancel it");
                }
                return null;
            }

            if (DEBUG_SPLASH_SCREEN) Slog.d(TAG, "Adding splash screen window for "
                + packageName + " / " + appToken + ": " + (view.getParent() != null ? view : null));