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

Commit 9a02535c authored by Stanislav Zholnin's avatar Stanislav Zholnin
Browse files

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

Test: manual verification
Change-Id: I5f64dcc11c27adf66cf9b9a42c61b2a51092eb12
parent fbdd8728
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);
    }

}