From 717e3f627094b1ac53e2f5a31b421d28fe4be14f Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Tue, 7 Sep 2021 13:07:37 -0400 Subject: [PATCH] Remove unneeded NEW_TASK To improve animations Test: manual Fixes: 197609584 Change-Id: I4cfbe7386014ba1fb6808bfeb283955101c7e1a7 --- .../notification/history/NotificationHistoryAdapter.java | 1 - .../settings/notification/history/NotificationSbnAdapter.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/com/android/settings/notification/history/NotificationHistoryAdapter.java b/src/com/android/settings/notification/history/NotificationHistoryAdapter.java index dfa8a30c15d..96bc14a6fb2 100644 --- a/src/com/android/settings/notification/history/NotificationHistoryAdapter.java +++ b/src/com/android/settings/notification/history/NotificationHistoryAdapter.java @@ -90,7 +90,6 @@ public class NotificationHistoryAdapter extends .putExtra(EXTRA_APP_PACKAGE, hn.getPackage()) .putExtra(EXTRA_CHANNEL_ID, hn.getChannelId()) .putExtra(EXTRA_CONVERSATION_ID, hn.getConversationId()); - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); holder.itemView.getContext().startActivityAsUser(intent, UserHandle.of(hn.getUserId())); }; holder.itemView.setOnClickListener(onClick); diff --git a/src/com/android/settings/notification/history/NotificationSbnAdapter.java b/src/com/android/settings/notification/history/NotificationSbnAdapter.java index e0328542803..7eca3b7f8ab 100644 --- a/src/com/android/settings/notification/history/NotificationSbnAdapter.java +++ b/src/com/android/settings/notification/history/NotificationSbnAdapter.java @@ -133,7 +133,6 @@ public class NotificationSbnAdapter extends .putExtra(EXTRA_APP_PACKAGE, sbn.getPackageName()) .putExtra(EXTRA_CHANNEL_ID, sbn.getNotification().getChannelId()) .putExtra(EXTRA_CONVERSATION_ID, sbn.getNotification().getShortcutId()); - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); holder.itemView.getContext().startActivityAsUser(intent, UserHandle.of(userId)); return true; });