summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-06-19 11:17:03 -0400
committerJason Monk <jmonk@google.com>2015-06-19 11:17:03 -0400
commit2e78f53af11366c875938919a8a187700c60d544 (patch)
tree39cbf17d24b59269f0d7dc811035a06aa881d581
parent2567514abcd253cdc857ef0ddb2dbbb4fe6eed08 (diff)
downloadpackages_apps_Settings-2e78f53af11366c875938919a8a187700c60d544.zip
packages_apps_Settings-2e78f53af11366c875938919a8a187700c60d544.tar.gz
packages_apps_Settings-2e78f53af11366c875938919a8a187700c60d544.tar.bz2
Add content description to owner info status text
Bug: 21799551 Change-Id: I8fe82d304309949a5a46492f7d20c58e006baea3
-rw-r--r--res/values/strings.xml3
-rw-r--r--src/com/android/settings/OwnerInfoSettings.java6
2 files changed, 8 insertions, 1 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 8e06465..dfde64d 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -6845,4 +6845,7 @@
<!-- Warning message about disabling usage access on profile owner [CHAR LIMIT=NONE] -->
<string name="work_profile_usage_access_warning">Turning off usage access for this app doesn\u2019t prevent your administrator tracking data usage for apps in your work profile.</string>
+
+ <!-- Number of characters used for lock screen text [CHAR LIMIT=NONE] -->
+ <string name="accessibility_lock_screen_progress"><xliff:g id="count" example="1">%1$d</xliff:g> of <xliff:g id="count" example="1">%2$d</xliff:g> characters used</string>
</resources>
diff --git a/src/com/android/settings/OwnerInfoSettings.java b/src/com/android/settings/OwnerInfoSettings.java
index 9cc78ea..d2fdbce 100644
--- a/src/com/android/settings/OwnerInfoSettings.java
+++ b/src/com/android/settings/OwnerInfoSettings.java
@@ -92,9 +92,13 @@ public class OwnerInfoSettings extends DialogFragment implements OnClickListener
}
private void updateOwnerInfoStatus() {
+ int chars = mOwnerInfo.getText().toString().length();
String status = getString(R.string.owner_info_settings_status,
- mOwnerInfo.getText().toString().length(), MAX_CHARS);
+ chars, MAX_CHARS);
+ String accessibilityStatus = getString(R.string.accessibility_lock_screen_progress,
+ chars, MAX_CHARS);
mOwnerInfoStatus.setText(status);
+ mOwnerInfoStatus.setContentDescription(accessibilityStatus);
}
@Override