summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/app/settings
diff options
context:
space:
mode:
authorblunden <blunden2@gmail.com>2018-03-18 13:47:09 +0100
committerMichael Bestas <mkbestas@lineageos.org>2020-12-12 01:23:35 +0200
commit25237ec70323d72c299dd984117031de432b8e42 (patch)
treeeb276882ff09e2915a7c5aa748e07654a949a5e5 /java/com/android/dialer/app/settings
parent7c55bb44f944ea55652e95048afd738b9ff51b53 (diff)
Generalize the in-call vibration settings category
Rename it to "In-call" and adjust the preference hiding code accordingly. Turn checkboxes into switches for more consistency. Change-Id: If22a58b4f82e3db59373e53da0632c126bd946f4
Diffstat (limited to 'java/com/android/dialer/app/settings')
-rw-r--r--java/com/android/dialer/app/settings/SoundSettingsFragment.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/java/com/android/dialer/app/settings/SoundSettingsFragment.java b/java/com/android/dialer/app/settings/SoundSettingsFragment.java
index 95f2a09ec..3c254cc4b 100644
--- a/java/com/android/dialer/app/settings/SoundSettingsFragment.java
+++ b/java/com/android/dialer/app/settings/SoundSettingsFragment.java
@@ -97,10 +97,19 @@ public class SoundSettingsFragment extends PreferenceFragment
vibrateWhenRinging.setOnPreferenceChangeListener(this);
} else {
PreferenceScreen ps = getPreferenceScreen();
- Preference inCallVibration = findPreference(
- context.getString(R.string.incall_vibration_category_key));
+ Preference inCallVibrateOutgoing = findPreference(
+ context.getString(R.string.incall_vibrate_outgoing_key));
+ Preference inCallVibrateCallWaiting = findPreference(
+ context.getString(R.string.incall_vibrate_call_waiting_key));
+ Preference inCallVibrateHangup = findPreference(
+ context.getString(R.string.incall_vibrate_hangup_key));
+ Preference inCallVibrate45Secs = findPreference(
+ context.getString(R.string.incall_vibrate_45_key));
ps.removePreference(vibrateWhenRinging);
- ps.removePreference(inCallVibration);
+ ps.removePreference(inCallVibrateOutgoing);
+ ps.removePreference(inCallVibrateCallWaiting);
+ ps.removePreference(inCallVibrateHangup);
+ ps.removePreference(inCallVibrate45Secs);
vibrateWhenRinging = null;
}