Device config flag clean up.

Test: built and tested on device
Change-Id: I4e64cceca629c0b4c0a5d0a5ec23bc2d75f4aead
This commit is contained in:
Yiwen Chen
2020-02-05 16:13:11 -08:00
parent 105624cf14
commit 950023fc36
3 changed files with 3 additions and 24 deletions

View File

@@ -31,7 +31,6 @@ import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.UserHandle;
import android.provider.DeviceConfig;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.ArrayMap;
@@ -121,8 +120,6 @@ public class AccessibilitySettings extends DashboardFragment {
// presentation.
private static final long DELAY_UPDATE_SERVICES_MILLIS = 1000;
static final String RAMPING_RINGER_ENABLED = "ramping_ringer_enabled";
private final Handler mHandler = new Handler();
private final Runnable mUpdateRunnable = new Runnable() {
@@ -273,11 +270,8 @@ public class AccessibilitySettings extends DashboardFragment {
@VisibleForTesting
static boolean isRampingRingerEnabled(final Context context) {
return (Settings.Global.getInt(
context.getContentResolver(),
Settings.Global.APPLY_RAMPING_RINGER, 0) == 1)
&& DeviceConfig.getBoolean(
DeviceConfig.NAMESPACE_TELEPHONY, RAMPING_RINGER_ENABLED, false);
return Settings.Global.getInt(
context.getContentResolver(), Settings.Global.APPLY_RAMPING_RINGER, 0) == 1;
}
private void initializeAllPreferences() {