Update BubbleBarExpandedView to have user specific code
Flag: WM_BUBBLE_BAR Test: treehugger Bug: 284032897 Change-Id: I8ce5f7916e103d2005986d5d5246ab694462d63b
This commit is contained in:
@@ -121,11 +121,19 @@ public class BubbleTaskViewHelper {
|
||||
fillInIntent.addFlags(FLAG_ACTIVITY_MULTIPLE_TASK);
|
||||
|
||||
if (mBubble.isAppBubble()) {
|
||||
PendingIntent pi = PendingIntent.getActivity(mContext, 0,
|
||||
mBubble.getAppBubbleIntent(),
|
||||
PendingIntent.FLAG_MUTABLE,
|
||||
null);
|
||||
mTaskView.startActivity(pi, fillInIntent, options, launchBounds);
|
||||
Context context =
|
||||
mContext.createContextAsUser(
|
||||
mBubble.getUser(), Context.CONTEXT_RESTRICTED);
|
||||
PendingIntent pi = PendingIntent.getActivity(
|
||||
context,
|
||||
/* requestCode= */ 0,
|
||||
mBubble.getAppBubbleIntent()
|
||||
.addFlags(FLAG_ACTIVITY_NEW_DOCUMENT)
|
||||
.addFlags(FLAG_ACTIVITY_MULTIPLE_TASK),
|
||||
PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_UPDATE_CURRENT,
|
||||
/* options= */ null);
|
||||
mTaskView.startActivity(pi, /* fillInIntent= */ null, options,
|
||||
launchBounds);
|
||||
} else if (mBubble.hasMetadataShortcutId()) {
|
||||
options.setApplyActivityFlagsForBubbles(true);
|
||||
mTaskView.startShortcutActivity(mBubble.getShortcutInfo(),
|
||||
|
||||
Reference in New Issue
Block a user