diff options
author | Andrew Lee <anwlee@google.com> | 2015-03-09 18:19:34 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-09 18:19:34 +0000 |
commit | 735fe848092c7d510e1d042959bf5363ed1bc614 (patch) | |
tree | 9e844918e1661829b64c149eb0996c810d9098d6 | |
parent | 896ad48a0b7bd33b6ba4499e8d11d503fd52d6ba (diff) | |
parent | 811641c94bd642cf3dfd735947ee4ef70d235a6f (diff) |
Merge "Add Accessibility settings to top-level."
-rw-r--r-- | res/values/strings.xml | 4 | ||||
-rw-r--r-- | src/com/android/dialer/settings/DialerSettingsActivity.java | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index e924c3afc..78b74e656 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -698,6 +698,10 @@ dialpad tones, and vibration for incoming calls. [CHAR LIMIT=40] --> <string name="sounds_and_vibration_title">Sounds and vibration</string> + <!-- Title for "Accessibility" category, which controls settings such as TTY mode and hearing + aid compatability. [CHAR LIMIT=40] --> + <string name="accessibility_settings_title">Accessibility</string> + <!-- Setting option name to pick ringtone (a list dialog comes up). [CHAR LIMIT=30] --> <string name="ringtone_title">Phone ringtone</string> diff --git a/src/com/android/dialer/settings/DialerSettingsActivity.java b/src/com/android/dialer/settings/DialerSettingsActivity.java index 945ff48d6..ac74a102c 100644 --- a/src/com/android/dialer/settings/DialerSettingsActivity.java +++ b/src/com/android/dialer/settings/DialerSettingsActivity.java @@ -77,6 +77,13 @@ public class DialerSettingsActivity extends PreferenceActivity { target.add(phoneAccountSettingsHeader); } } + + Header accessibilitySettingsHeader = new Header(); + Intent accessibilitySettingsIntent = + new Intent(TelecomManager.ACTION_SHOW_CALL_ACCESSIBILITY_SETTINGS); + accessibilitySettingsHeader.titleRes = R.string.accessibility_settings_title; + accessibilitySettingsHeader.intent = accessibilitySettingsIntent; + target.add(accessibilitySettingsHeader); } @Override |