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

Commit 191c5b5e authored by Roshan Pius's avatar Roshan Pius
Browse files

Fix a bug in the dtmf tone length setting.

Had an error in the preference setting string name.

BUG: 22452758
Change-Id: Ia9b55cb0a41382e4307cff6f5a8b97d9de2ac883
parent eb0be29e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;