Add highlight menu keys for all toggle pref controllers and custom slices

Bug: 204695404
Test: manual, robotest build pass, unit
Change-Id: Iad2e28ada8ddb766ffa7eff2c8dc581250cbd6f8
This commit is contained in:
Jason Chiu
2021-11-01 00:38:49 +08:00
parent 594eb43159
commit 2989c50a23
104 changed files with 599 additions and 37 deletions

View File

@@ -62,10 +62,11 @@ public class WifiPanel implements PanelContent {
final String screenTitle =
mContext.getText(R.string.wifi_settings).toString();
final Intent intent = SliceBuilderUtils.buildSearchResultPageIntent(mContext,
WifiSettings.class.getName(),
null /* key */,
screenTitle,
SettingsEnums.WIFI);
WifiSettings.class.getName(),
null /* key */,
screenTitle,
SettingsEnums.WIFI,
R.string.menu_key_network);
intent.setClassName(mContext.getPackageName(), SubSettings.class.getName());
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
return intent;