summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2014-03-07 00:37:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-07 00:37:14 +0000
commit8cb232cb796718ad91e56672a2c8fdbf88633001 (patch)
tree26b381967ffff05eb5206e4655503dd29a157b5d /core/java
parente29c96e7ae96f3b94937ea86ffcc0d4d1e930248 (diff)
parent6a1846a084fd09b3ade3fa80a49c29dcbe7cd60d (diff)
downloadframeworks_base-8cb232cb796718ad91e56672a2c8fdbf88633001.zip
frameworks_base-8cb232cb796718ad91e56672a2c8fdbf88633001.tar.gz
frameworks_base-8cb232cb796718ad91e56672a2c8fdbf88633001.tar.bz2
Merge "ProgressBar is important for accessibility by default." into klp-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/widget/ProgressBar.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/widget/ProgressBar.java b/core/java/android/widget/ProgressBar.java
index 5392a96..6a369a6 100644
--- a/core/java/android/widget/ProgressBar.java
+++ b/core/java/android/widget/ProgressBar.java
@@ -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);
+ }
}
/**