diff --git a/res/values/strings.xml b/res/values/strings.xml index 5b1cb192295..eff01b0a445 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -9100,9 +9100,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);