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

Commit bd8c6205 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz Committed by Android (Google) Code Review
Browse files

Merge "[RON] Improve RON demotion menu talkback announcement" into main

parents 1e28865a a5e19ebb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2274,6 +2274,8 @@
        few {# minutes}
        other {# minutes}
    }</string>
    <!-- Notification: Promoted Ongoing specific long click [CHAR LIMIT=NONE] -->
    <string name="notification_promoted_ongoing_long_click">to open demotion menu</string>

    <!-- Summary of battery saver not available [CHAR LIMIT=NONE] -->

+10 −1
Original line number Diff line number Diff line
@@ -4242,8 +4242,17 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        super.onInitializeAccessibilityNodeInfoInternal(info);
        final boolean isLongClickable = isNotificationRowLongClickable();
        if (isLongClickable) {
            if (isPromotedOngoing()) {
                final AccessibilityAction longClick =
                        new AccessibilityAction(
                                AccessibilityAction.ACTION_LONG_CLICK.getId(),
                                getContext().getResources().getString(
                                        R.string.notification_promoted_ongoing_long_click));
                info.addAction(longClick);
            } else {
                info.addAction(AccessibilityAction.ACTION_LONG_CLICK);
            }
        }
        info.setLongClickable(isLongClickable);

        if (canViewBeDismissed() && !mIsSnoozed) {