From a1978c2b4686b41aaa3ed8dc420f9601f315927c Mon Sep 17 00:00:00 2001 From: Hongwei Wang Date: Wed, 2 Dec 2020 14:53:48 -0800 Subject: [PATCH] Starts settings as PiP user Video: http://rcll/aaaaaabFQoRHlzixHdtY/hqnhjRhyJmuLCnkvV6YdOD Bug: 170152738 Test: see video Change-Id: I5d5372b1ceb54242f45bc4708551a43eb043655d --- .../Shell/src/com/android/wm/shell/pip/phone/PipMenuView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipMenuView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipMenuView.java index 6e3cd8e9aa09c..6344eba6eed08 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipMenuView.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipMenuView.java @@ -475,7 +475,7 @@ public class PipMenuView extends FrameLayout { final Intent settingsIntent = new Intent(ACTION_PICTURE_IN_PICTURE_SETTINGS, Uri.fromParts("package", topPipActivityInfo.first.getPackageName(), null)); settingsIntent.setFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TASK); - mContext.startActivityAsUser(settingsIntent, UserHandle.CURRENT); + mContext.startActivityAsUser(settingsIntent, UserHandle.of(topPipActivityInfo.second)); } }