diff --git a/src/com/android/settings/notification/VibrateWhenRingPreferenceController.java b/src/com/android/settings/notification/VibrateWhenRingPreferenceController.java index f1ce0af9da2..cbf909f5e89 100644 --- a/src/com/android/settings/notification/VibrateWhenRingPreferenceController.java +++ b/src/com/android/settings/notification/VibrateWhenRingPreferenceController.java @@ -130,17 +130,8 @@ public class VibrateWhenRingPreferenceController extends TogglePreferenceControl } private boolean isRampingRingerEnabled() { - String enableRampingRinger = DeviceConfig.getProperty( - DeviceConfig.Telephony.NAMESPACE, - DeviceConfig.Telephony.RAMPING_RINGER_ENABLED); - if (enableRampingRinger == null) { - return false; - } - try { - return Boolean.valueOf(enableRampingRinger); - } catch (Exception e) { - return false; - } + return DeviceConfig.getBoolean(DeviceConfig.Telephony.NAMESPACE, + DeviceConfig.Telephony.RAMPING_RINGER_ENABLED, false); } }