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

Commit 10c42ce3 authored by Ming-Shin Lu's avatar Ming-Shin Lu
Browse files

Revert "Ignore to show splash screen if the decorView is not opaque"

This reverts commit 877a2da3.

Reason for revert: As b/172991922#comment12, in case app launch performance regression happens when ignored non-opaque splash screen. (e.g camera app).

Bug: 146080233
Change-Id: Ided765479ef042e7bedf6fccb1fedfe4ddbc87af
parent 877a2da3
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -2410,15 +2410,6 @@ 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));