summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialer/settings/DialerSettingsActivity.java
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-10-27 17:09:55 -0700
committerAndrew Lee <anwlee@google.com>2014-10-27 17:12:59 -0700
commit0104d9bbcb1c4294bbd10b595f5f78ddcdcc7e7e (patch)
treea17a435ff96071d6e29dd8248af729e697e4a90e /src/com/android/dialer/settings/DialerSettingsActivity.java
parent076e9841dc30866e802ac9142fa2f9961bf536c7 (diff)
downloadandroid_packages_apps_Dialer-0104d9bbcb1c4294bbd10b595f5f78ddcdcc7e7e.tar.gz
android_packages_apps_Dialer-0104d9bbcb1c4294bbd10b595f5f78ddcdcc7e7e.tar.bz2
android_packages_apps_Dialer-0104d9bbcb1c4294bbd10b595f5f78ddcdcc7e7e.zip
Create call settings intent in DialerSettingsActivity.
- Remove helper method in DialtactsActivity. + Create intent in DialerSettingsActivity. This is the only place the method is called; it seems that this code to create the intent should live in DialerSettingsActivity instead of DialtactsActivity. Bug: 18114923 Change-Id: I129b716c2a247994647c123f1cbd945b7ef36778
Diffstat (limited to 'src/com/android/dialer/settings/DialerSettingsActivity.java')
-rw-r--r--src/com/android/dialer/settings/DialerSettingsActivity.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/com/android/dialer/settings/DialerSettingsActivity.java b/src/com/android/dialer/settings/DialerSettingsActivity.java
index 43186664e..53c23c4b3 100644
--- a/src/com/android/dialer/settings/DialerSettingsActivity.java
+++ b/src/com/android/dialer/settings/DialerSettingsActivity.java
@@ -52,17 +52,20 @@ public class DialerSettingsActivity extends AnalyticsPreferenceActivity {
// Only show call setting menus if the current user is the primary/owner user.
if (isPrimaryUser()) {
final TelephonyManager telephonyManager =
- (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);
+ (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
// Show "Call Settings" if there is one SIM and "Phone Accounts" if there are more.
if (telephonyManager.getPhoneCount() <= 1) {
final Header callSettingsHeader = new Header();
+ Intent callSettingsIntent = new Intent(TelecomManager.ACTION_SHOW_CALL_SETTINGS);
+ callSettingsIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
+
callSettingsHeader.titleRes = R.string.call_settings_label;
callSettingsHeader.summaryRes = R.string.call_settings_description;
- callSettingsHeader.intent = DialtactsActivity.getCallSettingsIntent();
+ callSettingsHeader.intent = callSettingsIntent;
target.add(callSettingsHeader);
} else {
final Header phoneAccountSettingsHeader = new Header();
- final Intent phoneAccountSettingsIntent =
+ Intent phoneAccountSettingsIntent =
new Intent(TelecomManager.ACTION_CHANGE_PHONE_ACCOUNTS);
phoneAccountSettingsIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);