From a970f6051b8c69f680a2d23c0ae232d9527f7850 Mon Sep 17 00:00:00 2001 From: Matt Pape Date: Mon, 25 Mar 2019 11:07:16 -0700 Subject: [PATCH] Remove interface for Telephony. Per API council feedback, we are making changes to include only the namespace in the system API defined in DeviceConfig.java. Strings which define property names should be defined in code local to the feature instead. Bug: 126411407 Test: atest FrameworksCoreTests:DeviceConfigTest Change-Id: I4fc2dc6b4f6876962a9f41d887124016e547f4fa --- .../notification/VibrateWhenRingPreferenceController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/notification/VibrateWhenRingPreferenceController.java b/src/com/android/settings/notification/VibrateWhenRingPreferenceController.java index cbf909f5e89..b043cb10f39 100644 --- a/src/com/android/settings/notification/VibrateWhenRingPreferenceController.java +++ b/src/com/android/settings/notification/VibrateWhenRingPreferenceController.java @@ -39,6 +39,8 @@ import com.android.settingslib.core.lifecycle.events.OnResume; public class VibrateWhenRingPreferenceController extends TogglePreferenceController implements LifecycleObserver, OnResume, OnPause { + /** Flag for whether or not to apply ramping ringer on incoming phone calls. */ + private static final String RAMPING_RINGER_ENABLED = "ramping_ringer_enabled"; private static final String KEY_VIBRATE_WHEN_RINGING = "vibrate_when_ringing"; private final int DEFAULT_VALUE = 0; private final int NOTIFICATION_VIBRATE_WHEN_RINGING = 1; @@ -130,8 +132,8 @@ public class VibrateWhenRingPreferenceController extends TogglePreferenceControl } private boolean isRampingRingerEnabled() { - return DeviceConfig.getBoolean(DeviceConfig.Telephony.NAMESPACE, - DeviceConfig.Telephony.RAMPING_RINGER_ENABLED, false); + return DeviceConfig.getBoolean( + DeviceConfig.NAMESPACE_TELEPHONY, RAMPING_RINGER_ENABLED, false); } }