Merge "Fix direct share badges when sharing on work/personal profiles" into sc-qpr1-dev

This commit is contained in:
Miranda Kephart
2021-09-16 13:51:15 +00:00
committed by Android (Google) Code Review

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