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

Commit 848f7a87 authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Add a11y text for disappearing preference" into sc-dev

parents afd77763 0d937afb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -9104,9 +9104,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);