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:
@@ -43,6 +43,8 @@ import com.android.internal.compat.IPlatformCompat;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.dashboard.DashboardFragment;
|
||||
import com.android.settings.development.AppPicker;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -53,6 +55,7 @@ import java.util.TreeMap;
|
||||
/**
|
||||
* Dashboard for Platform Compat preferences.
|
||||
*/
|
||||
@SearchIndexable
|
||||
public class PlatformCompatDashboard extends DashboardFragment {
|
||||
private static final String TAG = "PlatformCompatDashboard";
|
||||
private static final String COMPAT_APP = "compat_app";
|
||||
@@ -273,4 +276,7 @@ public class PlatformCompatDashboard extends DashboardFragment {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.platform_compat_settings);
|
||||
}
|
||||
|
Reference in New Issue
Block a user