summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-05-08 12:19:29 -0700
committerAndrew Lee <anwlee@google.com>2015-05-08 12:27:16 -0700
commit730e21c99faa82e6624d8aaca1f2e8dc9cfb8040 (patch)
treeed35fe36efcd9f09186a012521d1772f149c626d /src
parent0451f9a70032a866140d5caa6aa6303062774d3e (diff)
Only show accessibility settings for primary user.
Bug: 19870705 Change-Id: I7d13ab65da9d69819d39b3871297d274140b2a23
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/settings/DialerSettingsActivity.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/com/android/dialer/settings/DialerSettingsActivity.java b/src/com/android/dialer/settings/DialerSettingsActivity.java
index b84d8ab5f..d54053b40 100644
--- a/src/com/android/dialer/settings/DialerSettingsActivity.java
+++ b/src/com/android/dialer/settings/DialerSettingsActivity.java
@@ -77,16 +77,16 @@ public class DialerSettingsActivity extends PreferenceActivity {
phoneAccountSettingsHeader.intent = phoneAccountSettingsIntent;
target.add(phoneAccountSettingsHeader);
}
- }
- if (telephonyManager.isTtyModeSupported()
- || telephonyManager.isHearingAidCompatibilitySupported()) {
- 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);
+ if (telephonyManager.isTtyModeSupported()
+ || telephonyManager.isHearingAidCompatibilitySupported()) {
+ 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);
+ }
}
}