Depend on support lib preferences
Bug: 24576551 Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
This commit is contained in:
@@ -21,16 +21,15 @@ import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.preference.Preference;
|
||||
import android.speech.tts.TextToSpeech.EngineInfo;
|
||||
import android.support.v7.preference.Preference;
|
||||
import android.support.v7.preference.PreferenceViewHolder;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Checkable;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.RadioButton;
|
||||
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SettingsActivity;
|
||||
import com.android.settings.Utils;
|
||||
@@ -107,15 +106,16 @@ public class TtsEnginePreference extends Preference {
|
||||
setKey(mEngineInfo.name);
|
||||
setTitle(mEngineInfo.label);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public View getView(View convertView, ViewGroup parent) {
|
||||
public void onBindViewHolder(PreferenceViewHolder view) {
|
||||
super.onBindViewHolder(view);
|
||||
|
||||
if (mSharedState == null) {
|
||||
throw new IllegalStateException("Call to getView() before a call to" +
|
||||
"setSharedState()");
|
||||
}
|
||||
|
||||
View view = super.getView(convertView, parent);
|
||||
final RadioButton rb = (RadioButton) view.findViewById(R.id.tts_engine_radiobutton);
|
||||
rb.setOnCheckedChangeListener(mRadioChangeListener);
|
||||
|
||||
@@ -168,8 +168,6 @@ public class TtsEnginePreference extends Preference {
|
||||
if (mVoiceCheckData != null) {
|
||||
mSettingsIcon.setEnabled(mRadioButton.isChecked());
|
||||
}
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
public void setVoiceDataDetails(Intent data) {
|
||||
|
Reference in New Issue
Block a user