Ensure the splash screen launched from system ui must be solid color.

Core may lose the launch source when launch with pending intent.

Bug: 215262680
Bug: 204414989
Test: verify always shows solid color splash screen when lauch activity
from system ui.

Change-Id: I187574ecaeadc73d856256cfeebe214c8b76e841
This commit is contained in:
wilsonshih
2022-04-25 11:44:30 +08:00
parent 99b30edb9e
commit 90cf76a240

View File

@@ -110,6 +110,7 @@ import android.view.WindowManager;
import android.view.WindowManagerGlobal;
import android.view.accessibility.AccessibilityManager;
import android.widget.DateTimeView;
import android.window.SplashScreen;
import androidx.annotation.NonNull;
import androidx.lifecycle.Lifecycle;
@@ -4096,6 +4097,7 @@ public class CentralSurfaces extends CoreStartable implements
} else {
options = ActivityOptions.makeBasic();
}
options.setSplashScreenStyle(SplashScreen.SPLASH_SCREEN_STYLE_SOLID_COLOR);
return options;
}