Create whitelist for the most popular settings
As a temporary solution to getting the most popular settings to be the top rank, we have created a white list. If a prioritized setting shows up somewhere in the results then it will be given an elevated rank to be at the top. Bug: 35048659 Test: make RunSettingsRoboTests Change-Id: I92b563a17b42d8f91d980dd1d8e5f8f29ca5aa9c
This commit is contained in:
@@ -168,6 +168,9 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
|
||||
private MenuItem mScanMenuItem;
|
||||
|
||||
// For Search
|
||||
private static final String DATA_KEY_REFERENCE = "main_toggle_wifi";
|
||||
|
||||
/* End of "used in Wifi Setup context" */
|
||||
|
||||
public WifiSettings() {
|
||||
@@ -1028,6 +1031,7 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
data.title = res.getString(R.string.wifi_settings);
|
||||
data.screenTitle = res.getString(R.string.wifi_settings);
|
||||
data.keywords = res.getString(R.string.keywords_wifi);
|
||||
data.key = DATA_KEY_REFERENCE;
|
||||
result.add(data);
|
||||
|
||||
// Add saved Wi-Fi access points
|
||||
|
Reference in New Issue
Block a user