Settings search - Navigate user to exact page
- remove duplicate index preference - default set searchable = false when the preference has fragment - make some fragments indexable Bug: 143057584 Test: robotest & manual Change-Id: I4d64f6106d2f92f0a45e8c7e26388677f593f412
This commit is contained in:
@@ -33,11 +33,17 @@ import androidx.annotation.VisibleForTesting;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.applications.defaultapps.DefaultAppPickerFragment;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settingslib.applications.DefaultAppInfo;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Settings picker screen to handle Web implementation
|
||||
*/
|
||||
@SearchIndexable
|
||||
public class WebViewAppPicker extends DefaultAppPickerFragment {
|
||||
private WebViewUpdateServiceWrapper mWebViewUpdateServiceWrapper;
|
||||
|
||||
@@ -164,4 +170,7 @@ public class WebViewAppPicker extends DefaultAppPickerFragment {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.webview_app_settings);
|
||||
}
|
||||
|
Reference in New Issue
Block a user