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

Commit 2205b656 authored by Kevin Chang's avatar Kevin Chang Committed by Android (Google) Code Review
Browse files

Merge "Add content description in the tutorial dialog"

parents 409356c5 f8c360fe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -179,10 +179,12 @@ public class AccessibilityGestureNavigationTutorial {
        final int indexIconStart = messageString.indexOf("%s");
        final int indexIconEnd = indexIconStart + 2;
        final Drawable icon = context.getDrawable(R.drawable.ic_accessibility_new);
        final ImageSpan imageSpan = new ImageSpan(icon);
        imageSpan.setContentDescription("");
        icon.setTint(getThemeAttrColor(context, android.R.attr.textColorPrimary));
        icon.setBounds(0, 0, lineHeight, lineHeight);
        spannableMessage.setSpan(
                new ImageSpan(icon), indexIconStart, indexIconEnd,
                imageSpan, indexIconStart, indexIconEnd,
                Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);

        return spannableMessage;
+1 −1

File changed.

Contains only whitespace changes.