Loading libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/SplashscreenWindowCreator.java +0 −18 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ import android.content.Context; import android.content.pm.ActivityInfo; import android.content.pm.IPackageManager; import android.content.pm.PackageManager; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.PixelFormat; import android.hardware.display.DisplayManager; Loading @@ -54,7 +53,6 @@ import android.window.SplashScreenView; import android.window.StartingWindowInfo; import android.window.StartingWindowRemovalInfo; import com.android.internal.R; import com.android.internal.protolog.common.ProtoLog; import com.android.internal.util.ContrastColorUtil; import com.android.wm.shell.common.ShellExecutor; Loading Loading @@ -206,7 +204,6 @@ class SplashscreenWindowCreator extends AbsSplashWindowCreator { final SplashWindowRecord record = (SplashWindowRecord) mStartingWindowRecordManager.getRecord(taskId); if (record != null) { record.parseAppSystemBarColor(context); // Block until we get the background color. final SplashScreenView contentView = viewSupplier.get(); if (suggestType != STARTING_WINDOW_TYPE_LEGACY_SPLASH_SCREEN) { Loading Loading @@ -427,8 +424,6 @@ class SplashscreenWindowCreator extends AbsSplashWindowCreator { private boolean mSetSplashScreen; private SplashScreenView mSplashView; private int mSystemBarAppearance; private boolean mDrawsSystemBarBackgrounds; SplashWindowRecord(IBinder appToken, View decorView, @StartingWindowInfo.StartingWindowType int suggestType) { Loading @@ -448,19 +443,6 @@ class SplashscreenWindowCreator extends AbsSplashWindowCreator { mSetSplashScreen = true; } void parseAppSystemBarColor(Context context) { final TypedArray a = context.obtainStyledAttributes(R.styleable.Window); mDrawsSystemBarBackgrounds = a.getBoolean( R.styleable.Window_windowDrawsSystemBarBackgrounds, false); if (a.getBoolean(R.styleable.Window_windowLightStatusBar, false)) { mSystemBarAppearance |= WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS; } if (a.getBoolean(R.styleable.Window_windowLightNavigationBar, false)) { mSystemBarAppearance |= WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS; } a.recycle(); } @Override public boolean removeIfPossible(StartingWindowRemovalInfo info, boolean immediately) { if (mRootView == null) { Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/SplashscreenWindowCreator.java +0 −18 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ import android.content.Context; import android.content.pm.ActivityInfo; import android.content.pm.IPackageManager; import android.content.pm.PackageManager; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.PixelFormat; import android.hardware.display.DisplayManager; Loading @@ -54,7 +53,6 @@ import android.window.SplashScreenView; import android.window.StartingWindowInfo; import android.window.StartingWindowRemovalInfo; import com.android.internal.R; import com.android.internal.protolog.common.ProtoLog; import com.android.internal.util.ContrastColorUtil; import com.android.wm.shell.common.ShellExecutor; Loading Loading @@ -206,7 +204,6 @@ class SplashscreenWindowCreator extends AbsSplashWindowCreator { final SplashWindowRecord record = (SplashWindowRecord) mStartingWindowRecordManager.getRecord(taskId); if (record != null) { record.parseAppSystemBarColor(context); // Block until we get the background color. final SplashScreenView contentView = viewSupplier.get(); if (suggestType != STARTING_WINDOW_TYPE_LEGACY_SPLASH_SCREEN) { Loading Loading @@ -427,8 +424,6 @@ class SplashscreenWindowCreator extends AbsSplashWindowCreator { private boolean mSetSplashScreen; private SplashScreenView mSplashView; private int mSystemBarAppearance; private boolean mDrawsSystemBarBackgrounds; SplashWindowRecord(IBinder appToken, View decorView, @StartingWindowInfo.StartingWindowType int suggestType) { Loading @@ -448,19 +443,6 @@ class SplashscreenWindowCreator extends AbsSplashWindowCreator { mSetSplashScreen = true; } void parseAppSystemBarColor(Context context) { final TypedArray a = context.obtainStyledAttributes(R.styleable.Window); mDrawsSystemBarBackgrounds = a.getBoolean( R.styleable.Window_windowDrawsSystemBarBackgrounds, false); if (a.getBoolean(R.styleable.Window_windowLightStatusBar, false)) { mSystemBarAppearance |= WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS; } if (a.getBoolean(R.styleable.Window_windowLightNavigationBar, false)) { mSystemBarAppearance |= WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS; } a.recycle(); } @Override public boolean removeIfPossible(StartingWindowRemovalInfo info, boolean immediately) { if (mRootView == null) { Loading