Fix top level "Gestures" not appearing in search result
If the availability status equals AVAILABLE_UNSEARCHABLE, the preference won't appear in the serch result so we change the status to AVAILABLE. Change-Id: Id3ab28c4974f42be9b06a58d9c0d284f23ef160f Fixes: 117951603 Test: manual and robotests
This commit is contained in:
@@ -52,7 +52,7 @@ public class GesturesSettingPreferenceController extends BasePreferenceControlle
|
||||
for (AbstractPreferenceController controller : mGestureControllers) {
|
||||
isAvailable = isAvailable || controller.isAvailable();
|
||||
}
|
||||
return isAvailable ? AVAILABLE_UNSEARCHABLE : UNSUPPORTED_ON_DEVICE;
|
||||
return isAvailable ? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -101,4 +101,4 @@ public class GesturesSettingPreferenceController extends BasePreferenceControlle
|
||||
}
|
||||
return mContext.getText(R.string.language_input_gesture_summary_off);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user