Remove Language and Input duplicates
Change the keys in the Language and Input screen for the gesture and tts-output settings so they can be disabled in search. Then change the preference controllers to take a key as input to avoid crashes on the other screens with these settings. Merge for: ag/2098173/ Test: make RunSettingsRoboTests Bug: 33701673 Change-Id: I8bc0776131fcac5a6edf7e8271bc53252c2fc719
This commit is contained in:
@@ -35,6 +35,7 @@ import java.util.List;
|
||||
public class PickupGestureSettings extends DashboardFragment {
|
||||
|
||||
private static final String TAG = "PickupGestureSettings";
|
||||
private static final String KEY_PICK_UP = "gesture_pick_up";
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
@@ -60,7 +61,7 @@ public class PickupGestureSettings extends DashboardFragment {
|
||||
Lifecycle lifecycle) {
|
||||
final List<PreferenceController> controllers = new ArrayList<>();
|
||||
controllers.add(new PickupGesturePreferenceController(context, lifecycle,
|
||||
new AmbientDisplayConfiguration(context), UserHandle.myUserId()));
|
||||
new AmbientDisplayConfiguration(context), UserHandle.myUserId(), KEY_PICK_UP));
|
||||
return controllers;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user