From 811641c94bd642cf3dfd735947ee4ef70d235a6f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 26 Feb 2015 15:38:48 -0800 Subject: Add Accessibility settings to top-level. Followup CL will prevent this from showing if TTY Mode and HAC are not supported. Bug: 19372734 Change-Id: I8f1e93efab6447d2099d5eb6e734704d6632e299 --- res/values/strings.xml | 4 ++++ src/com/android/dialer/settings/DialerSettingsActivity.java | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/res/values/strings.xml b/res/values/strings.xml index 1e7a48b2d..0730f42ec 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] --> Sounds and vibration + + Accessibility + Phone ringtone 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 -- cgit v1.2.3