Merge "Keep consistency between sound and accessibility settings."

This commit is contained in:
Yiwen Chen
2019-05-23 14:52:48 +00:00
committed by Android (Google) Code Review
7 changed files with 150 additions and 13 deletions

View File

@@ -46,7 +46,11 @@ public class RingVibrationPreferenceFragment extends VibrationPreferenceFragment
@Override
protected String getVibrationEnabledSetting() {
return Settings.System.VIBRATE_WHEN_RINGING;
if (AccessibilitySettings.isRampingRingerEnabled(getContext())) {
return Settings.Global.APPLY_RAMPING_RINGER;
} else {
return Settings.System.VIBRATE_WHEN_RINGING;
}
}
@Override