summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/dialer/settings/SoundSettingsFragment.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/dialer/settings/SoundSettingsFragment.java b/src/com/android/dialer/settings/SoundSettingsFragment.java
index 43297b5e5..c7bb2d361 100644
--- a/src/com/android/dialer/settings/SoundSettingsFragment.java
+++ b/src/com/android/dialer/settings/SoundSettingsFragment.java
@@ -28,6 +28,7 @@ import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.preference.PreferenceScreen;
import android.provider.Settings;
+import android.telephony.CarrierConfigManager;
import android.telephony.TelephonyManager;
import com.android.dialer.R;
@@ -208,8 +209,9 @@ public class SoundSettingsFragment extends PreferenceFragment
}
private boolean shouldHideCarrierSettings() {
- int hideCarrierNetworkSetting = Settings.Global.getInt(getActivity().getContentResolver(),
- Settings.Global.HIDE_CARRIER_NETWORK_SETTINGS, SHOW_CARRIER_SETTINGS);
- return hideCarrierNetworkSetting == HIDE_CARRIER_SETTINGS;
+ CarrierConfigManager configManager = (CarrierConfigManager) getActivity().getSystemService(
+ Context.CARRIER_CONFIG_SERVICE);
+ return configManager.getConfig().getBoolean(
+ CarrierConfigManager.KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL);
}
}