commit | 9f27fa3687f6189a54f63fd980ea0dc42c70a468 | [log] [tgz] |
---|---|---|
author | Jeff Chang <chengjeff@google.com> | Thu Aug 18 20:51:33 2022 +0800 |
committer | Jeff Chang <chengjeff@google.com> | Wed Aug 24 10:39:04 2022 +0800 |
tree | 5c48242bd863946973524cc210bcbdbc6bf37fc9 | |
parent | 2d675e8ab03a14c073da0217e6400ee4ef78e0b4 [diff] |
Launch split task with correct UserHandle PendingIntent#getActivity gets the owner UserHandle from the app context. That makes the activity launch fail since the app only exists in the work profile environment(secondary user). This CL gets the correct Userhandle from Launcher and use PendingIntent#getActivityAsUser to launch split task. Bug: 242039471 Test: Launch Google chat by shortcut to enter split (work-profile) Change-Id: Ie1db8a858bf9cee700cb3ff3a9e607a5d1dbad30