speech: Re-add on-device speech recognition settings entry
After `Settings > System > Languages & input` was separated into `Settings > System > Languages` and `Settings > System > Keyboard`, `On-device speech recognition` was lost. This CL adds it in the same `Speech` preference category where it was before and moves the category to `Settings > System > Languages`. Bug: 278279110 Test: Manual, already existing robotests Change-Id: I040c284dd3596f35ceacb6980ff89e611e29971c
This commit is contained in:
@@ -33,10 +33,16 @@ import java.util.Optional;
|
||||
/** Controller of the On-device recognition preference. */
|
||||
public class OnDeviceRecognitionPreferenceController extends BasePreferenceController {
|
||||
|
||||
private static final String KEY_ON_DEVICE_RECOGNITION = "on_device_recognition_settings";
|
||||
|
||||
private static final String TAG = "OnDeviceRecognitionPreferenceController";
|
||||
|
||||
private Optional<Intent> mIntent;
|
||||
|
||||
public OnDeviceRecognitionPreferenceController(Context context) {
|
||||
this(context, KEY_ON_DEVICE_RECOGNITION);
|
||||
}
|
||||
|
||||
public OnDeviceRecognitionPreferenceController(Context context, String preferenceKey) {
|
||||
super(context, preferenceKey);
|
||||
}
|
||||
@@ -51,6 +57,10 @@ public class OnDeviceRecognitionPreferenceController extends BasePreferenceContr
|
||||
: CONDITIONALLY_UNAVAILABLE;
|
||||
}
|
||||
|
||||
public String getPreferenceKey() {
|
||||
return KEY_ON_DEVICE_RECOGNITION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateState(Preference preference) {
|
||||
super.updateState(preference);
|
||||
|
||||
Reference in New Issue
Block a user