Cherish: Incall vibration options [3/3]

* 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 :)
SuperDroidBond-: Make it default on

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
beanstown106
2018-09-06 22:52:55 +05:30
committed by Hưng Phan
parent 9792412040
commit 58affb0a08
3 changed files with 37 additions and 0 deletions

View File

@@ -17,6 +17,30 @@
<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>
<!-- Heads up -->
<Preference