Dialer: We want consistents....change CheckBoxes to Switches
Like in settings it is on other places often switches and here and there a checkbox
Change all CheckBoxes to Switches like sugested by google for new LP Ui.
Thanks for our users which point us to this small visual changes.
Change-Id: Ic3b317a00c70d4cd6aab0c7e5fb3dcd4078d352c
diff --git a/java/com/android/dialer/app/settings/SoundSettingsFragment.java b/java/com/android/dialer/app/settings/SoundSettingsFragment.java
index dcfb7a5..6b91620 100644
--- a/java/com/android/dialer/app/settings/SoundSettingsFragment.java
+++ b/java/com/android/dialer/app/settings/SoundSettingsFragment.java
@@ -167,6 +167,11 @@
int index = mDtmfToneLength.findIndexOfValue((String) objValue);
Settings.System.putInt(
getActivity().getContentResolver(), Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);
+ } else if (preference == mPlayDtmfTone) {
+ Settings.System.putInt(
+ getActivity().getContentResolver(),
+ Settings.System.DTMF_TONE_WHEN_DIALING,
+ mPlayDtmfTone.isChecked() ? PLAY_DTMF_TONE : NO_DTMF_TONE);
}
return true;
}
@@ -182,13 +187,7 @@
.show();
return true;
}
- if (preference == mPlayDtmfTone) {
- Settings.System.putInt(
- getActivity().getContentResolver(),
- Settings.System.DTMF_TONE_WHEN_DIALING,
- mPlayDtmfTone.isChecked() ? PLAY_DTMF_TONE : NO_DTMF_TONE);
- }
- return true;
+ return true;
}
/** Updates the summary text on the ringtone preference with the name of the ringtone. */