mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Pre-set splash screen as icon-style when launch activity from Launcher.
Specify icon style splash screen when launch activity from Launcher. Bug: 188023621 Bug: 189293785 Test: Start application from Launcher/Recents. Change-Id: I13b7cd67576cf8822e86ff90971d6bb1a24d1a91
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -435,6 +436,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user