Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa7d2d64 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Clean up some dead code" into main

parents 4a371aac 31c20cdd
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -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;
@@ -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;
@@ -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) {
@@ -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) {
@@ -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) {