Pass empty bundle instead of null to startLaunchIntentTransition()

Bug: 391309665
Test: manual; launch app from AllApps tray when in Desktop Mode
Flag: com.android.window.flags.enable_desktop_windowing_mode
Change-Id: Ic31ed43f6f2de630b2d235028ebd9643a8a8cf49
This commit is contained in:
Gustav Sennton
2025-01-21 12:59:40 +00:00
parent 399ca5a6f4
commit 4b0a5bf3e2

View File

@@ -1682,7 +1682,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
}
if (areDesktopTasksVisible()) {
ActivityOptionsWrapper opts = getActivityLaunchDesktopOptions(info);
Bundle optionsBundle = opts == null ? null : opts.options.toBundle();
Bundle optionsBundle = opts == null ? Bundle.EMPTY : opts.options.toBundle();
mSysUiProxy.startLaunchIntentTransition(intent, optionsBundle, displayId);
} else {
startActivity(intent, null);