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

Commit 87d618d6 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Automerger Merge Worker
Browse files

Merge "Allow to show icon style splash screen when launched from Shell." into tm-dev am: 9b30f9e9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17071749

Change-Id: Ice9d2abda31e2102acff8892e075773dfa502c07
parents 13ae849d 9b30f9e9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -6767,7 +6767,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
            }
            // Choose the default behavior for Launcher and SystemUI when the SplashScreen style is
            // not specified in the ActivityOptions.
            if (mLaunchSourceType == LAUNCH_SOURCE_TYPE_HOME) {
            if (mLaunchSourceType == LAUNCH_SOURCE_TYPE_HOME
                    || launchedFromUid == Process.SHELL_UID) {
                return false;
            } else if (mLaunchSourceType == LAUNCH_SOURCE_TYPE_SYSTEMUI) {
                return true;
@@ -6787,7 +6788,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        // solid color splash screen.
        // Need to check sourceRecord before in case this activity is launched from service.
        return !startActivity || !(mLaunchSourceType == LAUNCH_SOURCE_TYPE_SYSTEM
                || mLaunchSourceType == LAUNCH_SOURCE_TYPE_HOME);
                || mLaunchSourceType == LAUNCH_SOURCE_TYPE_HOME
                || launchedFromUid == Process.SHELL_UID);
    }

    private int getSplashscreenTheme(ActivityOptions options) {