linphone-android/app/src/main/res/layout/settings_call.xml
Sylvain Berfini 4d58d71dbe Started code to check DND policy on incoming call
Added dialog to ask user to grant us read permission on DND settings
2019-05-03 13:54:59 +02:00

80 lines
No EOL
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:linphone="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:orientation="vertical">
<org.linphone.settings.widget.SwitchSetting
android:id="@+id/pref_device_ringtone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
linphone:title="@string/pref_device_ringtone" />
<org.linphone.settings.widget.SwitchSetting
android:id="@+id/pref_vibrate_on_incoming_calls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
linphone:title="@string/pref_vibrate_on_incoming_calls" />
<org.linphone.settings.widget.BasicSetting
android:id="@+id/pref_grant_read_dnd_settings_permission"
android:layout_width="match_parent"
android:layout_height="wrap_content"
linphone:title="@string/pref_grant_read_dnd_settings_permission_title"
linphone:subtitle="@string/pref_grant_read_dnd_settings_permission_desc"/>
<org.linphone.settings.widget.ListSetting
android:id="@+id/pref_media_encryption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
linphone:title="@string/pref_media_encryption" />
<org.linphone.settings.widget.SwitchSetting
android:id="@+id/pref_sipinfo_dtmf"
android:layout_width="match_parent"
android:layout_height="wrap_content"
linphone:title="@string/pref_sipinfo_dtmf" />
<org.linphone.settings.widget.SwitchSetting
android:id="@+id/pref_rfc2833_dtmf"
android:layout_width="match_parent"
android:layout_height="wrap_content"
linphone:title="@string/pref_rfc2833_dtmf" />
<org.linphone.settings.widget.SwitchSetting
android:id="@+id/pref_auto_answer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
linphone:title="@string/pref_auto_answer" />
<org.linphone.settings.widget.TextSetting
android:id="@+id/pref_auto_answer_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
linphone:hint="@string/pref_auto_answer_time"
linphone:title="@string/pref_auto_answer_time" />
<org.linphone.settings.widget.TextSetting
android:id="@+id/pref_incoming_call_timeout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
linphone:hint="@string/pref_incoming_call_timeout_title"
linphone:title="@string/pref_incoming_call_timeout_title" />
<org.linphone.settings.widget.TextSetting
android:id="@+id/pref_voice_mail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
linphone:hint="@string/pref_voice_mail"
linphone:title="@string/pref_voice_mail" />
</LinearLayout>
</ScrollView>