am ded5a85a: Merge "Fix bug #18104271 Tapping *name* of service in Voice input services does not fill in radio button" into lmp-mr1-dev

* commit 'ded5a85aad2262d71fead6533901eee96abf9378':
  Fix bug #18104271 Tapping *name* of service in Voice input services does not fill in radio button
This commit is contained in:
Fabrice Di Meglio
2014-11-11 00:52:49 +00:00
committed by Android Git Automerger

View File

@@ -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);
}
/**