From f158ec33d8ef409a6c2d4c9f4c4731e16b59ee81 Mon Sep 17 00:00:00 2001 From: Cyrus Boadway Date: Tue, 22 Jun 2021 10:14:06 +0000 Subject: [PATCH] Use icon splash screen when starting activity from widget interaction Set the flag to use the icon splash screen rather than the empty splash screen when starting an activity from a widget interaction. Bug: 191738655 Test: manual Change-Id: Iff771a43648bbf6dfb88e2a6749c4526fd17da07 --- .../launcher3/uioverrides/QuickstepInteractionHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quickstep/src/com/android/launcher3/uioverrides/QuickstepInteractionHandler.java b/quickstep/src/com/android/launcher3/uioverrides/QuickstepInteractionHandler.java index d15113184d..5e9515d0d3 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/QuickstepInteractionHandler.java +++ b/quickstep/src/com/android/launcher3/uioverrides/QuickstepInteractionHandler.java @@ -26,6 +26,7 @@ import android.util.Log; import android.util.Pair; import android.view.View; import android.widget.RemoteViews; +import android.window.SplashScreen; import com.android.launcher3.Utilities; import com.android.launcher3.logging.StatsLogManager; @@ -70,6 +71,7 @@ class QuickstepInteractionHandler implements RemoteViews.InteractionHandler { } } activityOptions.options.setPendingIntentLaunchFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + activityOptions.options.setSplashscreenStyle(SplashScreen.SPLASH_SCREEN_STYLE_ICON); Object itemInfo = hostView.getTag(); if (itemInfo instanceof ItemInfo) { mLauncher.addLaunchCookie((ItemInfo) itemInfo, activityOptions.options);