diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2014-11-10 16:35:06 -0800 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2014-11-10 16:35:06 -0800 |
commit | c66a878813342708fcb766d1650202e771f02aa5 (patch) | |
tree | d568591b9af5f47734fab1370af93288ca62e542 /src/com/android/settings/voice | |
parent | ba53a846b153b7318d7fc9e21763369b43358e30 (diff) | |
download | packages_apps_Settings-c66a878813342708fcb766d1650202e771f02aa5.zip packages_apps_Settings-c66a878813342708fcb766d1650202e771f02aa5.tar.gz packages_apps_Settings-c66a878813342708fcb766d1650202e771f02aa5.tar.bz2 |
Fix bug #18104271 Tapping *name* of service in Voice input services does not fill in radio button
- prevent sending onRadioButtonClicked() if the radio button is already checked
- check the new current radio button
Change-Id: I7e4457bcba6eb1abf51fbe3902bc0f6df0f4bdcf
Diffstat (limited to 'src/com/android/settings/voice')
-rw-r--r-- | src/com/android/settings/voice/VoiceInputPreference.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/settings/voice/VoiceInputPreference.java b/src/com/android/settings/voice/VoiceInputPreference.java index 0ebffbb..38ef0ca 100644 --- a/src/com/android/settings/voice/VoiceInputPreference.java +++ b/src/com/android/settings/voice/VoiceInputPreference.java @@ -110,7 +110,9 @@ public final class VoiceInputPreference extends Preference { textLayout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - onRadioButtonClicked(rb, !rb.isChecked()); + if (!rb.isChecked()) { + onRadioButtonClicked(rb, true); + } } }); @@ -216,6 +218,7 @@ public final class VoiceInputPreference extends Preference { mSharedState.setCurrentKey(getKey()); updateCheckedState(true); callChangeListener(mSharedState.getCurrentKey()); + current.setChecked(true); } /** |