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

Commit d2a244f9 authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

am 8cb232cb: Merge "ProgressBar is important for accessibility by default." into klp-dev

* commit '8cb232cb':
  ProgressBar is important for accessibility by default.
parents 4f36104f 8cb232cb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -308,6 +308,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);
        }
    }

    /**