Merge "Ignore to show splash screen if the decorView is not opaque" into rvc-qpr-dev am: 4af61d89cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12935197 Change-Id: I20ef1932e88dbe70b77e23909d49a2bdf50e3651
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user