diff options
| -rw-r--r-- | res/values-ast-rES/cm_strings.xml | 26 | ||||
| -rw-r--r-- | res/values-ast-rES/strings.xml | 65 | ||||
| -rw-r--r-- | res/values-de/aicp_strings.xml | 24 | ||||
| -rw-r--r-- | res/values-el/aicp_strings.xml | 26 | ||||
| -rw-r--r-- | res/values-nl/aicp_strings.xml | 23 | ||||
| -rw-r--r-- | res/values/aicp_strings.xml | 27 | ||||
| -rw-r--r-- | res/xml/smart_options_settings.xml | 34 | ||||
| -rw-r--r-- | src/com/android/dialer/settings/DialerSettingsActivity.java | 6 | ||||
| -rw-r--r-- | src/com/android/dialer/settings/SmartOptionsSettingsFragment.java | 59 |
9 files changed, 283 insertions, 7 deletions
diff --git a/res/values-ast-rES/cm_strings.xml b/res/values-ast-rES/cm_strings.xml index ad752dba8..114bd5982 100644 --- a/res/values-ast-rES/cm_strings.xml +++ b/res/values-ast-rES/cm_strings.xml @@ -70,22 +70,34 @@ <string name="date_qs_currentmonth">Mes actual</string> <string name="date_qs_currentquarter">Trimestre actual</string> <string name="date_qs_currentyear">Añu actual</string> - <string name="date_qs_lastweek">Selmana cebera</string> - <string name="date_qs_lastmonth">Mes caberu</string> - <string name="date_qs_lastquarter">Trimestre caberu</string> - <string name="date_qs_lastyear">Añu caberu</string> - <string name="call_stats_date_filter">Axustar rangu de tiempu</string> + <string name="date_qs_lastweek">Cabera selmana</string> + <string name="date_qs_lastmonth">Caberu mes</string> + <string name="date_qs_lastquarter">Caberu trimestre</string> + <string name="date_qs_lastyear">Caberu añu</string> + <string name="call_stats_date_filter">Axustar rangu de dates</string> + <string name="call_stats_reset_filter">Restablecer rangu de dates</string> + <string name="call_stats_sort_by_duration">Ordenar por duración</string> + <string name="call_stats_sort_by_count">Ordenar por númb. llamaes</string> + <string name="call_stats_title_for_number">Esti númberu</string> <string name="call_stats_title_of_total">Del total</string> <string name="call_stats_title_durations">Duraciones de llamaes</string> <string name="call_stats_title_count">Cantidá de llamaes</string> - <string name="call_stats_title_average_duration">Duración media de llamaes</string> + <string name="call_stats_title_average_duration">Duración promediu de llamaes</string> <!-- Text displayed when there are no call log entries in the selected time range. --> + <string name="recent_calls_no_items_in_range">El to rexistru de llamaes nun contién llamada dala nel rangu de tiempu esbilláu.</string> <string name="call_recording_category_title">Grabación de llamaes</string> <string name="call_recording_format">Formatu d\'audiu</string> + <string name="call_playback_no_app_found_toast">Nun s\'atopó una app pa la reproducción de la grabación esbillada.</string> + <string name="invalid_number_text">"%1$s nun pue facer esta llamada. ¿Ye'l númb. correutu?"</string> <!-- T9 Search Text --> - <string name="empty_dialpad_t9_example">Pues marcar un númberu telefónicu o\nguetar un contautu</string> + <string name="empty_dialpad_t9_example">Pues marcar un número de teléfonu o\nguetar un contautu</string> + <string name="sign_in_hint_text">Anicia sesión pa facer %1$s llamaes</string> + <string name="wifi_hint_text">Fai llamaes de baldre de %1$s a %1$s per duana de Wi-Fi.</string> + <string name="roaming_hint_text">%1$s ta en roaming. Fai llamaes gratuites de %2$s a %2$s per duana de Wi-Fi.</string> <string name="emergency_call_hint_text">Nun hai SIM. Namái llamaes d\'emerxencia.</string> + <string name="extra_call_method_call_option">Llamada de <xliff:g id="provider">%s</xliff:g></string> <!-- InCall Plugin Settings --> + <string name="incall_plugin_settings">Axustes de <xliff:g id="name">%1$s</xliff:g></string> <!-- Search shortcut for "Call using PluginName" --> <string name="search_shortcut_call_using">Llamar usando <xliff:g id="name">%1$s</xliff:g></string> <!-- CallerInfo Provider Settings strings --> diff --git a/res/values-ast-rES/strings.xml b/res/values-ast-rES/strings.xml index 121d12bd4..06663e3b2 100644 --- a/res/values-ast-rES/strings.xml +++ b/res/values-ast-rES/strings.xml @@ -37,8 +37,10 @@ <!-- Menu item used to call a contact from the call log --> <!-- Text for a menu item to report a call as having been incorrectly identified. [CHAR LIMIT=30] --> + <string name="call_detail_menu_report">Informar de númberu imprecisu</string> <!-- Menu item used to copy a number from the call log to the dialer so it can be edited before calling it --> <!-- Menu item used to add a number from the call log to contacts --> + <string name="recentCalls_addToContact">Amestar a un contautu</string> <!-- Menu item used to remove a single call from the call log --> <string name="recentCalls_removeFromRecentList">Desaniciar del historial de llamaes</string> <!-- Menu item used to remove all calls from the call log --> @@ -46,7 +48,9 @@ <!-- Menu item used to delete a voicemail. [CHAR LIMIT=30] --> <!-- Menu item used to share a voicemail. [CHAR LIMIT=30] --> <!-- Text displayed when the call log is empty. --> + <string name="recentCalls_empty">El rexistru de llamaes ta baleru</string> <!-- Label of the button displayed when the call log is empty. Allows the user to make a call. --> + <string name="recentCalls_empty_action">Facer una llamada</string> <!-- Title of the confirmation dialog for clearing the call log. [CHAR LIMIT=37] --> <string name="clearCallLogConfirmation_title">¿Llimpiar historial de llamaes?</string> <!-- Confirmation dialog for clearing the call log. [CHAR LIMIT=NONE] --> @@ -72,7 +76,11 @@ <!-- The header to show that call log is only showing outgoing calls. [CHAR LIMIT=40] --> <!-- The header to show that call log is only showing missed calls. [CHAR LIMIT=40] --> <!-- Title for promo card for visual voicemail. [CHAR LIMIT=40] --> + <string name="visual_voicemail_title">Corréu de voz visual</string> <!-- Promo card text for visual voicemail. --> + <string name="visual_voicemail_text"> + Mira y escucha\'l to corréu de voz ensin tener de llamar a un númberu. Quiciabes s\'apliquen cargos de datos. + </string> <!-- Text for "Settings" link for visual voicemail promo card. [CHAR LIMIT=30] --> <string name="visual_voicemail_settings">Axustes</string> <!-- Voicemail status message shown at the top of call log to notify the user that no new @@ -222,6 +230,7 @@ <!-- String used to display calls from private numbers in the call log --> <!-- String used to display calls from pay phone in the call log --> <!-- A nicely formatted call duration displayed when viewing call details for duration less than 1 minute. For example "28 sec" --> + <string name="callDetailsShortDurationFormat"><xliff:g id="seconds" example="28">%s</xliff:g> segs</string> <!-- A nicely formatted call duration displayed when viewing call details. For example "42 min 28 sec" --> <!-- Dialog message which is shown when the user tries to make a phone call to prohibited phone numbers [CHAR LIMIT=NONE] --> @@ -253,7 +262,9 @@ Do not translate. --> <string name="view_full_call_history_font_family">sans-serif</string> <!-- Text displayed when the list of missed calls is empty --> + <string name="recentMissed_empty">Nun tienes llamaes perdíes.</string> <!-- Text displayed when the list of voicemails is empty --> + <string name="recentVoicemails_empty">La bandexa d\'entrada del to corréu de voz ta balera.</string> <!-- Menu option to show favorite contacts only --> <!-- Title of activity that displays a list of all calls --> <string name="call_log_activity_title">Historial</string> @@ -273,17 +284,23 @@ <!-- Shortcut item used to call a number directly from search --> <!-- Shortcut item used to add a number directly to a new contact from search. [CHAR LIMIT=25] --> + <string name="search_shortcut_create_new_contact">Crear contautu nuevu</string> <!-- Shortcut item used to add a number to an existing contact directly from search. [CHAR LIMIT=25] --> + <string name="search_shortcut_add_to_contact">Amestar a un contautu</string> <!-- Shortcut item used to send a text message directly from search. [CHAR LIMIT=25] --> <string name="search_shortcut_send_sms_message">Unviar SMS</string> <!-- Shortcut item used to make a video call directly from search. [CHAR LIMIT=25] --> <!-- Title for the call log list item that brings users to the full call history when clicked --> <!-- Number of missed calls shown on call card [CHAR LIMIT=40] --> <!-- Shown when there are no speed dial favorites. --> + <string name="speed_dial_empty">Entá nun hai naide nel to marcador rápidu</string> <!-- Shown as an action when there are no speed dial favorites --> + <string name="speed_dial_empty_add_favorite_action">Amestar un favoritu</string> <!-- Shown when there are no contacts in the all contacts list. --> + <string name="all_contacts_empty">Entá nun tienes contautos</string> <!-- Shown as an action when the all contacts list is empty --> + <string name="all_contacts_empty_add_contact_action">Amestar un contautu</string> <!-- Shows up as a tooltip to provide a hint to the user that the profile pic in a contact card can be tapped to bring up a list of all numbers, or long pressed to start reordering [CHAR LIMIT=NONE] @@ -293,14 +310,19 @@ <!-- Button text for the "video call" displayed underneath an entry in the call log. Tapping causes a video call to be placed to the caller represented by the call log entry. [CHAR LIMIT=30] --> + <string name="call_log_action_video_call">Llamada de videu</string> <!-- Button text for a button displayed underneath an entry in the call log, which opens up a messaging app to send a SMS to the number represented by the call log entry. [CHAR LIMIT=30] --> + <string name="call_log_action_send_message">Unviar mensaxe</string> <!-- Button text for the button displayed underneath an entry in the call log. Tapping navigates the user to the call details screen where the user can view details for the call log entry. [CHAR LIMIT=30] --> <!-- Button text for the button displayed underneath an entry in the call log, which when tapped triggers a return call to the named user. [CHAR LIMIT=30] --> + <string name="call_log_action_call"> + Llamar a <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> + </string> <!-- String describing an incoming missed call entry in the call log. Note: AccessibilityServices uses this attribute to announce what the view represents. [CHAR LIMIT=NONE] --> @@ -319,40 +341,72 @@ [CHAR LIMIT=NONE] --> <!-- String describing the phone icon on a call log list item. When tapped, it will place a call to the number represented by that call log entry. [CHAR LIMIT=NONE]--> + <string name="description_call_log_call_action">Llamar</string> <!-- String describing the "call" action for an entry in the call log. The call back action triggers a return call to the named user. Note: AccessibilityServices uses this attribute to announce the purpose of the button. [CHAR LIMIT=NONE] --> + <string name="description_call_action"> + Llamar a <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> + </string> <!-- String describing the "video call" action for an entry in the call log. The video call action triggers a return video call to the named person/number. Note: AccessibilityServices uses this attribute to announce the purpose of the button. [CHAR LIMIT=NONE] --> + <string name="description_video_call_action"> + Videollamada a <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> + </string> <!-- String describing the "listen" action for an entry in the call log. The listen action is shown for call log entries representing a voicemail message and this button triggers playing back the voicemail. Note: AccessibilityServices uses this attribute to announce the purpose of the button. [CHAR LIMIT=NONE] --> + <string name="description_voicemail_action"> + Escuchar buzón de voz de <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> + </string> <!-- String describing the "play voicemail" action for an entry in the call log. Note: AccessibilityServices uses this attribute to announce the purpose of the button. [CHAR LIMIT=NONE] --> + <string name="description_voicemail_play"> + Reproducir buzón de voz de <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> + </string> <!-- String describing the "pause voicemail" action for an entry in the call log. Note: AccessibilityServices uses this attribute to announce the purpose of the button. [CHAR LIMIT=NONE] --> + <string name="description_voicemail_pause"> + Posar buzón de voz de <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> + </string> <!-- String describing the "delete voicemail" action for an entry in the call log. Note: AccessibilityServices uses this attribute to announce the purpose of the button. [CHAR LIMIT=NONE] --> + <string name="description_voicemail_delete"> + Desaniciar buzón de voz de <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> + </string> <!-- String describing the number of new voicemails, displayed as a number badge on a tab. Note: AccessibilityServices uses this attribute to announce the purpose of the button. [CHAR LIMIT=NONE] --> + <plurals name="description_voicemail_unread"> + <item quantity="one"><xliff:g id="count">%d</xliff:g> mensaxe de voz nuevu</item> + <item quantity="other"><xliff:g id="count">%d</xliff:g> mensaxes de voz nuevos</item> + </plurals> <!-- Description for the "create new contact" action for an entry in the call log. This action opens a screen for creating a new contact for this name or number. [CHAR LIMIT=NONE] --> + <string name="description_create_new_contact_action"> + Crear un contautu pa <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> + </string> <!-- Description for the "add to existing contact" action for an entry in the call log. This action opens a screen for adding this name or number to an existing contact. [CHAR LIMIT=NONE] --> + <string name="description_add_to_existing_contact_action"> + Amestar <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> a un contautu esistente + </string> <!-- String describing the "details" action for an entry in the call log. The details action displays the call details screen for an entry in the call log. This shows the calls to and from the specified number associated with the call log entry. [CHAR LIMIT=NONE] --> + <string name="description_details_action"> + Detalles de llamada de <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> + </string> <!-- Toast message which appears when a call log entry is deleted. [CHAR LIMIT=NONE] --> <!-- String used as a header in the call log above calls which occurred today. @@ -391,6 +445,7 @@ <!-- Dialer settings related strings--> <!-- Title for "Display options" category, which controls how contacts are shown. [CHAR LIMIT=40] --> + <string name="display_options_title">Opciones d\'amuesa</string> <!-- Title for the "Sounds and vibration" settings control settings related to ringtones, dialpad tones, and vibration for incoming calls. [CHAR LIMIT=40] --> <string name="sounds_and_vibration_title">Soníos y vibración</string> @@ -404,6 +459,7 @@ <!-- Setting option name to enable or disable DTMF tone sound [CHAR LIMIT=30] --> <string name="dtmf_tone_enable_title">Tonos del tecláu numbéricu</string> <!-- Label for setting to adjust the length of DTMF tone sounds. [CHAR LIMIT=40] --> + <string name="dtmf_tone_length_title">Llargor de tonu del panel de marcáu</string> <!-- Options displayed for the length of DTMF tone sounds. [CHAR LIMIT=40] --> <string-array name="dtmf_tone_length_entries"> <item>Normal</item> @@ -419,12 +475,21 @@ <!-- DO NOT TRANSLATE. Internal key for vibrate when ringing preference. --> <!-- DO NOT TRANSLATE. Internal key for DTMF tone length preference. --> <!-- The label of the button used to turn on a single permission --> + <string name="permission_single_turn_on">Activar</string> <!-- The label of the button used to turn on multiple permissions --> + <string name="permission_multiple_turn_on">Afiar permisos</string> <!-- Shown as a prompt to turn on the contacts permission to enable speed dial --> + <string name="permission_no_speeddial">P\'habilitar el marcáu rápidu,\n habilita\'l permisu de Contautos.</string> <!-- Shown as a prompt to turn on the phone permission to enable the call log --> + <string name="permission_no_calllog">Pa ver el to rexistru de llamaes,\n habilita\'l permisu de Teléfonu.</string> <!-- Shown as a prompt to turn on the contacts permission to show all contacts --> + <string name="permission_no_contacts">Pa ver los tos contautos\n habilita\'l permisu de Contautos.</string> <!-- Shown as a prompt to turn on the phone permission to show voicemails --> + <string name="permission_no_voicemail">P\'acceder al to corréu de voz,\n habilita\'l permisu de Teléfonu.</string> <!-- Shown as a prompt to turn on contacts permissions to allow contact search --> + <string name="permission_no_search">Pa guetar los tos contautos, activa\'l permisu de Contautos.</string> <!-- Shown as a prompt to turn on the phone permission to allow a call to be placed --> + <string name="permission_place_call">Pa facer llamaes,\n habilita\'l permisu de Teléfonu.</string> <!-- Shown as a message that notifies the user that the Phone app cannot write to system settings, which is why the system settings app is being launched directly instead.--> + <string name="toast_cannot_write_system_settings">L\'aplicación Teléfonu nun tien permisu pa escribir nos axustes del sistema.</string> </resources> diff --git a/res/values-de/aicp_strings.xml b/res/values-de/aicp_strings.xml new file mode 100644 index 000000000..23144deda --- /dev/null +++ b/res/values-de/aicp_strings.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2016 AICP + 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. +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Title for "Smart options" category, which controls which smart options are enabled. + [CHAR LIMIT=40] --> + <string name="smart_options_title">Intelligente Optionen</string> + + <!-- Smart Options --> + <string name="smart_category_title">Intelligente Optionen</string> + <string name="smart_mute_title">Intelligentes Stummschalten</string> + <string name="smart_mute_summary">Eingehenden Anruf stumm schalten, wenn das Gerät umgedreht wird</string> + +</resources> diff --git a/res/values-el/aicp_strings.xml b/res/values-el/aicp_strings.xml new file mode 100644 index 000000000..64e2f64d1 --- /dev/null +++ b/res/values-el/aicp_strings.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2016 AICP + + 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. +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Title for "Smart options" category, which controls which smart options are enabled. + [CHAR LIMIT=40] --> + <string name="smart_options_title">Έξυπνες επιλογές</string> + + <!-- Smart Options --> + <string name="smart_category_title">Έξυπνες επιλογές</string> + <string name="smart_mute_title">Έξυπνη σίγαση</string> + <string name="smart_mute_summary">Σίγαση της εισερχόμενης κλήσης αναποδογυρίζοντας την συσκευή</string> +</resources>
\ No newline at end of file diff --git a/res/values-nl/aicp_strings.xml b/res/values-nl/aicp_strings.xml new file mode 100644 index 000000000..8882150f0 --- /dev/null +++ b/res/values-nl/aicp_strings.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2016 AICP + 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. +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Title for "Smart options" category, which controls which smart options are enabled. + [CHAR LIMIT=40] --> + <string name="smart_options_title">Slimme opties</string> + + <!-- Smart Options --> + <string name="smart_category_title">Slimme opties</string> + <string name="smart_mute_title">Slim dempen</string> + <string name="smart_mute_summary">Demp het geluid van de inkomende oproep door het apparaat om te draaien</string> +</resources> diff --git a/res/values/aicp_strings.xml b/res/values/aicp_strings.xml new file mode 100644 index 000000000..8c8980681 --- /dev/null +++ b/res/values/aicp_strings.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2016 AICP + + 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. +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Title for "Smart options" category, which controls which smart options are enabled. + [CHAR LIMIT=40] --> + <string name="smart_options_title">Smart options</string> + + <!-- Smart Options --> + <string name="smart_category_title">Smart options</string> + <string name="smart_mute_title">Smart mute</string> + <string name="smart_mute_summary">Mute the incoming call by flipping the device</string> + +</resources> diff --git a/res/xml/smart_options_settings.xml b/res/xml/smart_options_settings.xml new file mode 100644 index 000000000..4eb2ef84b --- /dev/null +++ b/res/xml/smart_options_settings.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- + ~ Copyright (C) 2015 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"> + + <PreferenceCategory + android:key="dialer_general_smart_category_key" + android:title="@string/smart_category_title" + android:persistent="false"> + + <SwitchPreference + android:key="button_smart_mute" + android:title="@string/smart_mute_title" + android:summary="@string/smart_mute_summary" + android:defaultValue="false" /> + + </PreferenceCategory> + +</PreferenceScreen> diff --git a/src/com/android/dialer/settings/DialerSettingsActivity.java b/src/com/android/dialer/settings/DialerSettingsActivity.java index 52d91104d..ff18fa247 100644 --- a/src/com/android/dialer/settings/DialerSettingsActivity.java +++ b/src/com/android/dialer/settings/DialerSettingsActivity.java @@ -245,6 +245,12 @@ public class DialerSettingsActivity extends PreferenceActivity { speedDialHeader.titleRes = R.string.speed_dial_settings; speedDialHeader.intent = speedDialIntent; target.add(speedDialHeader); + + Header smartOptionsHeader = new Header(); + smartOptionsHeader.titleRes = R.string.smart_options_title; + smartOptionsHeader.fragment = SmartOptionsSettingsFragment.class.getName(); + target.add(smartOptionsHeader); + } if (mCallerInfoProvider != null) { diff --git a/src/com/android/dialer/settings/SmartOptionsSettingsFragment.java b/src/com/android/dialer/settings/SmartOptionsSettingsFragment.java new file mode 100644 index 000000000..250c9821a --- /dev/null +++ b/src/com/android/dialer/settings/SmartOptionsSettingsFragment.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2015 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 + */ + +package com.android.dialer.settings; + +import android.content.Context; +import android.os.Bundle; +import android.preference.ListPreference; +import android.preference.Preference; +import android.preference.PreferenceFragment; +import android.text.TextUtils; + +import com.android.dialer.R; + +import cyanogenmod.providers.CMSettings; + +import java.util.Locale; + +public class SmartOptionsSettingsFragment extends PreferenceFragment + implements Preference.OnPreferenceChangeListener { + + public static final String BUTTON_SMART_MUTE_KEY = "button_smart_mute"; + + private Context mContext; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + mContext = getActivity().getApplicationContext(); + + addPreferencesFromResource(R.xml.smart_options_settings); + + } + + /** + * Supports onPreferenceChangeListener to look for preference changes. + * + * @param preference The preference to be changed + * @param objValue The value of the selection, NOT its localized display value. + */ + @Override + public boolean onPreferenceChange(Preference preference, Object objValue) { + return true; + } + +} |
