Starts settings as PiP user

Video: http://rcll/aaaaaabFQoRHlzixHdtY/hqnhjRhyJmuLCnkvV6YdOD
Bug: 170152738
Test: see video
Change-Id: I5d5372b1ceb54242f45bc4708551a43eb043655d
This commit is contained in:
Hongwei Wang
2020-12-02 14:53:48 -08:00
parent c7a983079f
commit a1978c2b46

View File

@@ -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));
}
}