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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user