Merge "Prevent apply system insets on splash screen from FITS_SYSTEM_WINDOWS" into sc-dev

This commit is contained in:
Wei Sheng Shih
2021-07-07 11:11:03 +00:00
committed by Android (Google) Code Review

View File

@@ -299,6 +299,7 @@ public class StartingSurfaceDrawer {
final SplashScreenViewSupplier viewSupplier = new SplashScreenViewSupplier();
final FrameLayout rootLayout = new FrameLayout(context);
rootLayout.setPadding(0, 0, 0, 0);
rootLayout.setFitsSystemWindows(false);
final Runnable setViewSynchronized = () -> {
Trace.traceBegin(TRACE_TAG_WINDOW_MANAGER, "addSplashScreenView");
// waiting for setContentView before relayoutWindow