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

Commit 7f79302d authored by Svetoslav's avatar Svetoslav Committed by Android (Google) Code Review
Browse files

Merge "ProgressBar is important for accessibility by default."

parents b4914267 7face75f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -304,6 +304,11 @@ public class ProgressBar extends View {
        mMirrorForRtl = a.getBoolean(R.styleable.ProgressBar_mirrorForRtl, mMirrorForRtl);

        a.recycle();

        // If not explicitly specified this view is important for accessibility.
        if (getImportantForAccessibility() == View.IMPORTANT_FOR_ACCESSIBILITY_AUTO) {
            setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
        }
    }

    /**