Fix some long forgottten TTS settings bugs
- Handle radio button clicks correctly - Handle injecting voice data correctly bug:5998256 bug:5938852 bug:5998418 Change-Id: Ib30afa6558e51ac9a88e28c51500ebaad93ad7fe
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
package com.android.settings.tts;
|
||||
|
||||
import com.android.settings.R;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
@@ -31,6 +29,9 @@ import android.widget.CompoundButton;
|
||||
import android.widget.RadioButton;
|
||||
|
||||
|
||||
import com.android.settings.R;
|
||||
|
||||
|
||||
public class TtsEnginePreference extends Preference {
|
||||
|
||||
/**
|
||||
@@ -173,7 +174,8 @@ public class TtsEnginePreference extends Preference {
|
||||
}
|
||||
|
||||
private void onRadioButtonClicked(CompoundButton buttonView, boolean isChecked) {
|
||||
if (mPreventRadioButtonCallbacks) {
|
||||
if (mPreventRadioButtonCallbacks ||
|
||||
(mSharedState.getCurrentChecked() == buttonView)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user