*allow setting vibration when call is connected *allow setting vibration when call is disconnected *allow setting vibration for call waiting *this works with google and aosp dialer :) Change-Id: Id1a431124174571f8d0091825af2418971cfe35d Signed-off-by: AmolAmrit <amol.amrit03@outlook.com> Signed-off-by: SagarMakhar <sagarmakhar@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
65 lines
2.5 KiB
XML
65 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2016 Nitrogen 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"
|
|
android:title="@string/notifications_title"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
|
|
|
<PreferenceCategory
|
|
android:key="incall_vib_options"
|
|
android:title="@string/incall_vibration_category">
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="vibrate_on_connect"
|
|
android:icon="@drawable/ic_vibrate"
|
|
android:title="@string/incall_vibrate_connect_title"
|
|
android:defaultValue="true" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="vibrate_on_callwaiting"
|
|
android:icon="@drawable/ic_vibrate"
|
|
android:title="@string/incall_vibrate_call_wait_title"
|
|
android:defaultValue="true" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="vibrate_on_disconnect"
|
|
android:icon="@drawable/ic_vibrate"
|
|
android:title="@string/incall_vibrate_disconnect_title"
|
|
android:defaultValue="true" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="headsup_notifications_category"
|
|
android:title="@string/headsup_category">
|
|
|
|
<Preference
|
|
android:key="heads_up_notifications"
|
|
android:summary="@string/heads_up_notifications_summary"
|
|
android:title="@string/heads_up_notifications"
|
|
android:fragment="com.cherish.settings.fragments.HeadsUpSettings"/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="toast_icon"
|
|
android:title="@string/toast_icon_title"
|
|
android:summary="@string/toast_icon_summary"
|
|
android:defaultValue="false" />
|
|
|
|
|
|
</PreferenceScreen>
|