OSDN Git Service

Ensure the Bubble settings intent is started as the correct user
authorMark Renouf <mrenouf@google.com>
Mon, 20 May 2019 13:29:44 +0000 (09:29 -0400)
committerMark Renouf <mrenouf@google.com>
Mon, 20 May 2019 13:29:44 +0000 (09:29 -0400)
Bug: 128891021
Test: app w/bubble notification in work profile only, click settings
Change-Id: If3421542d9487011f7c1f581758c1ffd8e2dedb9

packages/SystemUI/src/com/android/systemui/bubbles/BubbleExpandedView.java

index 39867c3..001c7bc 100644 (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);
             });