diff --git a/res/values/strings.xml b/res/values/strings.xml index a5a2b3be025..96fd344db49 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -9104,9 +9104,12 @@ Clear recent conversations - + Recent conversations removed + + Conversation removed + Clear diff --git a/src/com/android/settings/notification/app/RecentConversationsPreferenceController.java b/src/com/android/settings/notification/app/RecentConversationsPreferenceController.java index d715ce457a9..4984fad9400 100644 --- a/src/com/android/settings/notification/app/RecentConversationsPreferenceController.java +++ b/src/com/android/settings/notification/app/RecentConversationsPreferenceController.java @@ -167,6 +167,8 @@ public class RecentConversationsPreferenceController extends AbstractPreferenceC pref.setOnClearClickListener(() -> { try { mPs.removeRecentConversation(pkg, UserHandle.getUserId(uid), conversationId); + pref.getClearView().announceForAccessibility( + mContext.getString(R.string.recent_convo_removed)); parent.removePreference(pref); } catch (RemoteException e) { Slog.w(TAG, "Could not clear recent", e);