diff options
| author | 2023-05-19 15:56:47 -0700 | |
|---|---|---|
| committer | 2023-05-19 16:22:20 -0700 | |
| commit | beafcf1562b8115f5d289f5587699a6a3e40e612 (patch) | |
| tree | 1a8dcc2c41fda0d56df6e5e9454ad05c8ac90d2c /libs/androidfw/ApkParsing.cpp | |
| parent | 3376f68636890ee98e13232bb4a4a536e37e8693 (diff) | |
Fix bug with drag-to-split involving work profiles
This patch fixes a bug where the user would unexpectedly create a split with the work profile version of an app when intending to split with the personal profile version.
The bug occurred because RecentTasksController#findTaskInBackground only checked for ComponentName equality, not for userId equality. So when dragging to split, it would accidentally find the background (work) version of the task instead of creating a new (personal) one.
Fixed by adding a check for userId equality.
Fixes: 283021596
Test: Manual
Change-Id: I128f93267af57a74f5a6237d4ad3b841ca194499
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions