Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d937afb authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Add a11y text for disappearing preference

Test: Talkback
Fixes: 182241259
Change-Id: I99c1ce635c5717e22ee28bc86b51bd3be4b83d91
parent 55d7d938
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -9100,9 +9100,12 @@
    <!-- [CHAR LIMIT=60] button title -->
    <string name="conversation_settings_clear_recents">Clear recent conversations</string>
    <!-- a11y feedeback for 'clear recents' button' -->
    <!-- a11y feedback for 'clear recents' button' -->
    <string name="recent_convos_removed">Recent conversations removed</string>
    <!-- a11y feedback for 'clear recent conversation' button' -->
    <string name="recent_convo_removed">Conversation removed</string>
    <!-- a11y string -->
    <string name="clear">Clear</string>
+2 −0
Original line number Diff line number Diff line
@@ -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);