summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2015-07-13 13:57:31 -0700
committerRoshan Pius <rpius@google.com>2015-07-13 14:34:18 -0700
commit191c5b5e18f45f7652015a6f8581180ea57e0b48 (patch)
tree3c88afba2208aa2ac845a82a2170343b0ab97afd /src
parenteb0be29edc8e7144f529da9ce0b20312de699329 (diff)
Fix a bug in the dtmf tone length setting.
Had an error in the preference setting string name. BUG: 22452758 Change-Id: Ia9b55cb0a41382e4307cff6f5a8b97d9de2ac883
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/settings/SoundSettingsFragment.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/dialer/settings/SoundSettingsFragment.java b/src/com/android/dialer/settings/SoundSettingsFragment.java
index c7bb2d361..7fc9394f8 100644
--- a/src/com/android/dialer/settings/SoundSettingsFragment.java
+++ b/src/com/android/dialer/settings/SoundSettingsFragment.java
@@ -51,6 +51,9 @@ public class SoundSettingsFragment extends PreferenceFragment
private static final int NO_VIBRATION_FOR_CALLS = 0;
private static final int DO_VIBRATION_FOR_CALLS = 1;
+
+ private static final int DTMF_TONE_TYPE_NORMAL = 0;
+
private static final int SHOW_CARRIER_SETTINGS = 0;
private static final int HIDE_CARRIER_SETTINGS = 1;
@@ -112,7 +115,8 @@ public class SoundSettingsFragment extends PreferenceFragment
mDtmfToneLength.setOnPreferenceChangeListener(this);
mDtmfToneLength.setValueIndex(
Settings.System.getInt(context.getContentResolver(),
- Settings.System.DTMF_TONE_WHEN_DIALING, PLAY_DTMF_TONE));
+ Settings.System.DTMF_TONE_TYPE_WHEN_DIALING,
+ DTMF_TONE_TYPE_NORMAL));
} else {
getPreferenceScreen().removePreference(mDtmfToneLength);
mDtmfToneLength = null;