From 9258cf087ca5372bb76e5bf55b5170a31f65fdbe Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Wed, 3 Mar 2021 21:30:57 +0000 Subject: [PATCH] Add missing display ID In the previous CL I missed the display ID for the other overload of the method. Bug: 175329765 Test: Manual Change-Id: Ifd5a2583cb6211367b1170835ef66a513a812ca1 --- .../src/com/android/systemui/statusbar/phone/StatusBar.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index bf36435b78c91..0807f8aa56073 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -4398,7 +4398,10 @@ public class StatusBar extends SystemUI implements DemoMode, */ public static Bundle getActivityOptions(int displayId, @Nullable RemoteAnimationAdapter animationAdapter) { - return getDefaultActivityOptions(animationAdapter).toBundle(); + ActivityOptions options = getDefaultActivityOptions(animationAdapter); + options.setLaunchDisplayId(displayId); + options.setCallerDisplayId(displayId); + return options.toBundle(); } /**