Merge "Fix direct share badges when sharing on work/personal profiles" into sc-qpr1-dev am: b51d58e6fd am: 0d5e670809 am: 6f87f6c3e6

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15839049

Change-Id: I42d1724d8c892e0e9dba196eff6ec21cd3b3f3b5
This commit is contained in:
Miranda Kephart
2021-09-16 14:29:27 +00:00
committed by Automerger Merge Worker

View File

@@ -165,7 +165,7 @@ public final class SelectableTargetInfo implements ChooserTargetInfo {
// Now fetch app icon and raster with no badging even in work profile
Bitmap appIcon = mSelectableTargetInfoCommunicator.makePresentationGetter(info)
.getIconBitmap(android.os.Process.myUserHandle());
.getIconBitmap(mContext.getUser());
// Raster target drawable with appIcon as a badge
SimpleIconFactory sif = SimpleIconFactory.obtain(mContext);