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

Commit 7f0d5c6d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Ignore to show splash screen if the decorView is not opaque" into...

Merge "Ignore to show splash screen if the decorView is not opaque" into rvc-qpr-dev am: 4af61d89 am: d23f4668

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

Change-Id: I5e880748372ce49ab2e07e675d69cd583afaebdc
parents 1023c6dc d23f4668
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -2429,6 +2429,15 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            wm = (WindowManager) context.getSystemService(WINDOW_SERVICE);
            wm = (WindowManager) context.getSystemService(WINDOW_SERVICE);
            view = win.getDecorView();
            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 "
            if (DEBUG_SPLASH_SCREEN) Slog.d(TAG, "Adding splash screen window for "
                + packageName + " / " + appToken + ": " + (view.getParent() != null ? view : null));
                + packageName + " / " + appToken + ": " + (view.getParent() != null ? view : null));