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:
@@ -28,15 +28,17 @@ import com.android.settingslib.core.lifecycle.Lifecycle;
|
||||
public class SwipeToNotificationPreferenceController extends GesturePreferenceController {
|
||||
|
||||
private static final String PREF_KEY_VIDEO = "gesture_swipe_down_fingerprint_video";
|
||||
private static final String PREF_KEY_SWIPE_DOWN_FINGERPRINT = "gesture_swipe_down_fingerprint";
|
||||
private final String mSwipeDownFingerPrefKey;
|
||||
|
||||
public SwipeToNotificationPreferenceController(Context context, Lifecycle lifecycle) {
|
||||
public SwipeToNotificationPreferenceController(Context context, Lifecycle lifecycle,
|
||||
String key) {
|
||||
super(context, lifecycle);
|
||||
mSwipeDownFingerPrefKey = key;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPreferenceKey() {
|
||||
return PREF_KEY_SWIPE_DOWN_FINGERPRINT;
|
||||
return mSwipeDownFingerPrefKey;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user