<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:phone="http://schemas.android.com/apk/res/com.android.phone"
    android:title="@string/voicemail">

    <com.android.phone.settings.VoicemailProviderListPreference
        android:key="button_voicemail_provider_key"
        android:title="@string/voicemail_provider"
        android:summary="@string/sum_voicemail_choose_provider"
        android:defaultValue=""
        android:persistent="true" />

    <PreferenceScreen
        android:key="button_voicemail_setting_key"
        android:title="@string/voicemail_settings"
        android:persistent="false">

        <!-- Note for all com.android.phone.EditPhoneNumberPreference objects

             The last several attributes are for use with the EditText field
             in the dialog.  These attributes are forwarded to that field
             when the edittext is created.  The attributes include:
             1. android:singleLine
             2. android:autoText
             3. android:background -->

        <com.android.phone.EditPhoneNumberPreference
            android:key="button_voicemail_key"
            android:title="@string/voicemail_settings_number_label"
            android:persistent="false"
            android:dialogTitle="@string/voicemail"
            phone:confirmMode="confirm"
            android:singleLine="true"
            android:autoText="false" />

    </PreferenceScreen>

    <com.android.phone.settings.VoicemailRingtonePreference
        android:key="@string/voicemail_notification_ringtone_key"
        android:title="@string/voicemail_notification_ringtone_title"
        android:persistent="false"
        android:ringtoneType="notification" />

    <CheckBoxPreference
        android:key="@string/voicemail_notification_vibrate_key"
        android:title="@string/voicemail_notification_vibrate_when_title"
        android:persistent="true" />

    <SwitchPreference
        android:key="@string/voicemail_visual_voicemail_key"
        android:title="@string/voicemail_visual_voicemail_switch_title" />"

    <Preference
      android:key="@string/voicemail_change_pin_key"
      android:title="@string/voicemail_change_pin_dialog_title" />
</PreferenceScreen>