summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/app/settings/DialerSettingsActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/android/dialer/app/settings/DialerSettingsActivity.java')
-rw-r--r--java/com/android/dialer/app/settings/DialerSettingsActivity.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/settings/DialerSettingsActivity.java b/java/com/android/dialer/app/settings/DialerSettingsActivity.java
index 10ef9ed60..706f0985a 100644
--- a/java/com/android/dialer/app/settings/DialerSettingsActivity.java
+++ b/java/com/android/dialer/app/settings/DialerSettingsActivity.java
@@ -33,9 +33,12 @@ import android.view.MenuItem;
import android.widget.Toast;
import com.android.dialer.about.AboutPhoneFragment;
import com.android.dialer.app.R;
+import com.android.dialer.assisteddialing.ConcreteCreator;
+import com.android.dialer.assisteddialing.ui.AssistedDialingSettingFragment;
import com.android.dialer.blocking.FilteredNumberCompat;
import com.android.dialer.common.LogUtil;
import com.android.dialer.compat.telephony.TelephonyManagerCompat;
+import com.android.dialer.configprovider.ConfigProviderBindings;
import com.android.dialer.proguard.UsedByReflection;
import com.android.voicemail.VoicemailClient;
import com.android.voicemail.VoicemailComponent;
@@ -135,6 +138,21 @@ public class DialerSettingsActivity extends AppCompatPreferenceActivity {
target.add(accessibilitySettingsHeader);
}
+ boolean isAssistedDialingEnabled =
+ ConcreteCreator.isAssistedDialingEnabled(
+ ConfigProviderBindings.get(getApplicationContext()));
+ LogUtil.i(
+ "DialerSettingsActivity.onBuildHeaders",
+ "showing assisted dialing header: " + isAssistedDialingEnabled);
+ if (isAssistedDialingEnabled) {
+
+ Header assistedDialingSettingsHeader = new Header();
+ assistedDialingSettingsHeader.titleRes =
+ com.android.dialer.assisteddialing.ui.R.string.assisted_dialing_setting_title;
+ assistedDialingSettingsHeader.fragment = AssistedDialingSettingFragment.class.getName();
+ target.add(assistedDialingSettingsHeader);
+ }
+
if (showAbout()) {
Header aboutPhoneHeader = new Header();
aboutPhoneHeader.titleRes = R.string.about_phone_label;