Create help link placeholder for Wifi Direct settings.
Change-Id: Ia22259d191d2663d7ef63438c680826d3fd590fb Bug: 70854725 Test: robotests
This commit is contained in:
@@ -6614,6 +6614,8 @@
|
||||
|
||||
<!-- Help URL, WiFi [DO NOT TRANSLATE] -->
|
||||
<string name="help_url_wifi" translatable="false"></string>
|
||||
<!-- Help URL, WiFi Direct [DO NOT TRANSLATE] -->
|
||||
<string name="help_url_wifi_p2p" translatable="false"></string>
|
||||
<!-- Help URL, Bluetooth [DO NOT TRANSLATE] -->
|
||||
<string name="help_url_bluetooth" translatable="false"></string>
|
||||
<!-- Help URL, Data usage [DO NOT TRANSLATE] -->
|
||||
|
@@ -35,7 +35,6 @@ import com.android.settings.search.Indexable;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@SearchIndexable
|
||||
@@ -142,13 +141,14 @@ public final class MagnificationPreferenceFragment extends DashboardFragment {
|
||||
@Override
|
||||
public List<SearchIndexableResource> getXmlResourcesToIndex(Context context,
|
||||
boolean enabled) {
|
||||
if (isApplicable(context.getResources())) {
|
||||
final SearchIndexableResource sir = new SearchIndexableResource(context);
|
||||
sir.xmlResId = R.xml.accessibility_magnification_settings;
|
||||
return Arrays.asList(sir);
|
||||
} else {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
final SearchIndexableResource sir = new SearchIndexableResource(context);
|
||||
sir.xmlResId = R.xml.accessibility_magnification_settings;
|
||||
return Arrays.asList(sir);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isPageSearchEnabled(Context context) {
|
||||
return isApplicable(context.getResources());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -167,6 +167,11 @@ public class WifiP2pSettings extends DashboardFragment
|
||||
return MetricsEvent.WIFI_P2P;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHelpResource() {
|
||||
return R.string.help_url_wifi_p2p;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<AbstractPreferenceController> createPreferenceControllers(Context context) {
|
||||
final List<AbstractPreferenceController> controllers = new ArrayList<>();
|
||||
|
Reference in New Issue
Block a user