* 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 :) Adapted to PE [arrow-13.0]: - Move inside accessibility_vibration_settings as all the aosp vibration toggles are there includes: fixup! Settings: incall vibration options [3/3] [ghostrider-reborn] - Enable by default - Add to the slider-based prefs page as well Change-Id: I55e99f501a3af07287c57a23939666351f4cef67 Signed-off-by: Karan Parashar <whyredfire@gmail.com> Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com> Signed-off-by: someone5678 <someone5678@users.noreply.github.com>
112 lines
5.0 KiB
XML
112 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2018 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:app="http://schemas.android.com/apk/res-auto"
|
|
android:title="@string/accessibility_vibration_settings_title">
|
|
|
|
<com.android.settingslib.widget.MainSwitchPreference
|
|
android:key="vibrate_on"
|
|
android:title="@string/accessibility_vibration_primary_switch_title"
|
|
app:keywords="@string/keywords_accessibility_vibration_primary_switch"
|
|
app:controller="com.android.settings.accessibility.VibrationMainSwitchPreferenceController"/>
|
|
|
|
<PreferenceCategory
|
|
android:key="vibration_category_call"
|
|
android:title="@string/accessibility_call_vibration_category_title">
|
|
|
|
<SwitchPreferenceCompat
|
|
android:key="vibration_preference_ring"
|
|
android:title="@string/accessibility_ring_vibration_title"
|
|
app:keywords="@string/keywords_ring_vibration"
|
|
app:controller="com.android.settings.accessibility.RingVibrationTogglePreferenceController" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:key="vibration_preference_ramping_ringer"
|
|
android:title="@string/vibrate_when_ringing_option_ramping_ringer"
|
|
app:keywords="@string/keywords_ramping_ringer_vibration"
|
|
app:controller="com.android.settings.accessibility.VibrationRampingRingerTogglePreferenceController"/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="vibration_category_notification_alarm"
|
|
android:title="@string/accessibility_notification_alarm_vibration_category_title">
|
|
|
|
<SwitchPreferenceCompat
|
|
android:key="vibration_preference_notification"
|
|
android:title="@string/accessibility_notification_vibration_title"
|
|
app:keywords="@string/keywords_notification_vibration"
|
|
app:controller="com.android.settings.accessibility.NotificationVibrationTogglePreferenceController" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:key="vibration_preference_alarm"
|
|
android:title="@string/accessibility_alarm_vibration_title"
|
|
app:keywords="@string/keywords_alarm_vibration"
|
|
app:controller="com.android.settings.accessibility.AlarmVibrationTogglePreferenceController" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="vibration_category_haptics"
|
|
android:title="@string/accessibility_interactive_haptics_category_title">
|
|
|
|
<SwitchPreferenceCompat
|
|
android:key="vibration_preference_touch"
|
|
android:title="@string/accessibility_touch_vibration_title"
|
|
app:keywords="@string/keywords_touch_vibration"
|
|
app:controller="com.android.settings.accessibility.HapticFeedbackTogglePreferenceController" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:key="vibration_preference_media"
|
|
android:title="@string/accessibility_media_vibration_title"
|
|
app:keywords="@string/keywords_media_vibration"
|
|
app:controller="com.android.settings.accessibility.MediaVibrationTogglePreferenceController" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:key="vibration_preference_keyboard"
|
|
android:title="@string/accessibility_keyboard_vibration_title"
|
|
app:keywords="@string/keywords_keyboard_vibration"
|
|
app:controller="com.android.settings.accessibility.KeyboardVibrationTogglePreferenceController"/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<!-- Incall vibration options -->
|
|
<PreferenceCategory
|
|
android:key="accessibility_incall_vibration_category"
|
|
android:title="@string/incall_vibration_category"
|
|
app:controller="com.android.settings.sound.IncallFeedbackPreferenceController">
|
|
|
|
<org.evolution.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="vibrate_on_connect"
|
|
android:title="@string/incall_vibrate_connect_title"
|
|
android:defaultValue="true" />
|
|
|
|
<org.evolution.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="vibrate_on_callwaiting"
|
|
android:title="@string/incall_vibrate_call_wait_title"
|
|
android:defaultValue="true" />
|
|
|
|
<org.evolution.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="vibrate_on_disconnect"
|
|
android:title="@string/incall_vibrate_disconnect_title"
|
|
android:defaultValue="true" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|