Disable voice input if assist is voice service
Bug: 22358252 Change-Id: Id4a9de8c5287c5e025d0ccc7f98edd8855db519c
This commit is contained in:
@@ -121,6 +121,16 @@ public class VoiceInputListPreference extends AppListPreferenceWithSettings {
|
||||
}
|
||||
}
|
||||
|
||||
public ComponentName getCurrentService() {
|
||||
if (mHelper.mCurrentVoiceInteraction != null) {
|
||||
return mHelper.mCurrentVoiceInteraction;
|
||||
} else if (mHelper.mCurrentRecognizer != null) {
|
||||
return mHelper.mCurrentRecognizer;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private class CustomAdapter extends ArrayAdapter<CharSequence> {
|
||||
|
||||
public CustomAdapter(Context context, CharSequence[] objects) {
|
||||
|
Reference in New Issue
Block a user