Merge "Pre-set splash screen as icon-style when launch activity from Launcher." into sc-dev am: c3db44bbce

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14773251

Change-Id: Icc117227086edadc83c34fa12242674c4f6b961c
This commit is contained in:
Wei Sheng Shih
2021-06-08 12:29:50 +00:00
committed by Automerger Merge Worker
3 changed files with 10 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ import android.os.Bundle;
import android.os.CancellationSignal;
import android.os.IBinder;
import android.view.View;
import android.window.SplashScreen;
import androidx.annotation.Nullable;
@@ -428,6 +429,7 @@ public abstract class BaseQuickstepLauncher extends Launcher
ActivityOptionsCompat.setLauncherSourceInfo(
activityOptions.options, mLastTouchUpTime);
}
activityOptions.options.setSplashscreenStyle(SplashScreen.SPLASH_SCREEN_STYLE_ICON);
addLaunchCookie(item, activityOptions.options);
return activityOptions;
}