Remove unneeded NEW_TASK am: 717e3f6270
am: 60dd5ef026
am: cea348541f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15778692 Change-Id: I62a8e597284701f0a90a234d8ff591be41b9eb26
This commit is contained in:
@@ -90,7 +90,6 @@ public class NotificationHistoryAdapter extends
|
|||||||
.putExtra(EXTRA_APP_PACKAGE, hn.getPackage())
|
.putExtra(EXTRA_APP_PACKAGE, hn.getPackage())
|
||||||
.putExtra(EXTRA_CHANNEL_ID, hn.getChannelId())
|
.putExtra(EXTRA_CHANNEL_ID, hn.getChannelId())
|
||||||
.putExtra(EXTRA_CONVERSATION_ID, hn.getConversationId());
|
.putExtra(EXTRA_CONVERSATION_ID, hn.getConversationId());
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
||||||
holder.itemView.getContext().startActivityAsUser(intent, UserHandle.of(hn.getUserId()));
|
holder.itemView.getContext().startActivityAsUser(intent, UserHandle.of(hn.getUserId()));
|
||||||
};
|
};
|
||||||
holder.itemView.setOnClickListener(onClick);
|
holder.itemView.setOnClickListener(onClick);
|
||||||
|
@@ -133,7 +133,6 @@ public class NotificationSbnAdapter extends
|
|||||||
.putExtra(EXTRA_APP_PACKAGE, sbn.getPackageName())
|
.putExtra(EXTRA_APP_PACKAGE, sbn.getPackageName())
|
||||||
.putExtra(EXTRA_CHANNEL_ID, sbn.getNotification().getChannelId())
|
.putExtra(EXTRA_CHANNEL_ID, sbn.getNotification().getChannelId())
|
||||||
.putExtra(EXTRA_CONVERSATION_ID, sbn.getNotification().getShortcutId());
|
.putExtra(EXTRA_CONVERSATION_ID, sbn.getNotification().getShortcutId());
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
||||||
holder.itemView.getContext().startActivityAsUser(intent, UserHandle.of(userId));
|
holder.itemView.getContext().startActivityAsUser(intent, UserHandle.of(userId));
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user