diff options
author | Jason Monk <jmonk@google.com> | 2015-06-09 20:02:24 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-09 20:02:26 +0000 |
commit | eac27519087723d9ba9cf3e19daff1cc46656eae (patch) | |
tree | f6f85001e1b945f003d140f5c07e9fd71906628a /packages | |
parent | c33062ff0c7e9eb92ce7c70340d5f489f23aaafe (diff) | |
parent | 08187a4b2669b79c88586392d7c99665e6dbd00b (diff) | |
download | frameworks_base-eac27519087723d9ba9cf3e19daff1cc46656eae.zip frameworks_base-eac27519087723d9ba9cf3e19daff1cc46656eae.tar.gz frameworks_base-eac27519087723d9ba9cf3e19daff1cc46656eae.tar.bz2 |
Merge "Add hotspot accessibility description" into mnc-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/res/values/strings.xml | 3 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 8a3aa5f..14c8262 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -1090,4 +1090,7 @@ <!-- Accessibility label for Quick Settings detail screens [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_detail">Quick Settings, <xliff:g id="title" example="Wi-Fi">%s</xliff:g>.</string> + <!-- Accessibility label for hotspot icon [CHAR LIMIT=NONE] --> + <string name="accessibility_status_bar_hotspot">Hotspot</string> + </resources> diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java index 0872e06..6a6266e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java @@ -162,7 +162,8 @@ public class PhoneStatusBarPolicy { mCast.addCallback(mCastCallback); // hotspot - mService.setIcon(SLOT_HOTSPOT, R.drawable.stat_sys_hotspot, 0, null); + mService.setIcon(SLOT_HOTSPOT, R.drawable.stat_sys_hotspot, 0, + mContext.getString(R.string.accessibility_status_bar_hotspot)); mService.setIconVisibility(SLOT_HOTSPOT, mHotspot.isHotspotEnabled()); mHotspot.addCallback(mHotspotCallback); |