Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f574d22f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use updated DeviceConfig API's new getters to simplify invocations."

parents cec74ac9 9a02535c
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -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);
    }

}