commit | 4d969427d6b6037c6ce0fb233e060e35ca6f56c4 | [log] [tgz] |
---|---|---|
author | Kevin Lim <kylim@google.com> | Fri Apr 14 23:22:27 2023 +0000 |
committer | Kevin Lim <kylim@google.com> | Wed Apr 19 21:59:00 2023 +0000 |
tree | 7a46a6dae473380295fb1e950713b2104e5526c1 | |
parent | d73328b0fc74cb66641f392487475ae8e728a0f3 [diff] |
Fix app SearchTarget id generation to consider UserHandle. Previously, `SearchTargetEventHelper#generateAppTargetIdForLogging` was assuming Process.myUserHandle() was the UserHandle to use, instead of the ItemInfo.users. In the case of work profile, this would generate the incorrect id, and even worse create a name collision. Bug: 277363943 Flag: Production bug fix. Flag not needed. Test: Before: http://recall/clips/08f8a142-ceeb-475e-8c4c-99b78240c592 Test: After: http://recall/clips/af50580e-74d5-46d8-97d6-60147a778a59 Change-Id: Ie075467555a61b6edd3cc9453c5108815351c54a