Ensure the Bubble settings intent is started as the correct user

Bug: 128891021
Test: app w/bubble notification in work profile only, click settings
Change-Id: If3421542d9487011f7c1f581758c1ffd8e2dedb9
This commit is contained in:
Mark Renouf
2019-05-20 09:29:44 -04:00
parent e6ffb72e55
commit 7617619541

View File

@@ -407,7 +407,7 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList
Intent intent = getSettingsIntent(mEntry.notification.getPackageName(),
mEntry.notification.getUid());
mStackView.collapseStack(() -> {
mContext.startActivity(intent);
mContext.startActivityAsUser(intent, mEntry.notification.getUser());
logBubbleClickEvent(mEntry,
StatsLog.BUBBLE_UICHANGED__ACTION__HEADER_GO_TO_SETTINGS);
});